Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix chipset reporting (fixes #151) #152

Merged
merged 4 commits into from
Dec 10, 2021

Conversation

mhei
Copy link
Contributor

@mhei mhei commented Nov 29, 2021

As described in #151, reporting the chipset name is not working as expected - at least as I would expect.

This PR tries solves this issue by introducing a new function which not only considers the MCLASS field
as older chipsetname function does, but by relying on the IDENT field in the response MME.

Signed-off-by: Michael Heimpold [email protected]

mhei added 4 commits November 29, 2021 09:47
These two types are listed in the comment above and/or in the
bootrom list already, but they are missing in the firmware list.

Signed-off-by: Michael Heimpold <[email protected]>
Storing this field already here saves us from having the same logic
of looking at different response offsets twice.

Signed-off-by: Michael Heimpold <[email protected]>
This new function determines the chipset name based on the ident field
in VS_SW_VER.CNF. It also implements a fallback to the chipsetname
function in case an unknown ident value is given, or
we use this when the same ident value is ambiguous without inspecting
the device class field additionally.

Signed-off-by: Michael Heimpold <[email protected]>
This uses the newly introduced function and thus
fixes Github issue qca#151.

Signed-off-by: Michael Heimpold <[email protected]>
barsnick pushed a commit to chargebyte/meta-chargebyte-distro that referenced this pull request Nov 29, 2021
While waiting for upstream to merge PR #152
qca/open-plc-utils#152
we switch to our fork to have the function available as desired.

Signed-off-by: Michael Heimpold <[email protected]>
@mhei
Copy link
Contributor Author

mhei commented Dec 9, 2021

@n1000 : any objections here?

@n1000
Copy link
Member

n1000 commented Dec 10, 2021

Hey @mhei , this change looks good, thanks!

@n1000 n1000 merged commit 358dfcf into qca:master Dec 10, 2021
@mhei mhei deleted the fix-chipset-reporting branch December 10, 2021 17:35
@mhei mhei restored the fix-chipset-reporting branch December 10, 2021 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants