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

nl80211: properly support split_wiphy_dump for single phys #249

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

jow-
Copy link
Owner

@jow- jow- commented Dec 5, 2024

When performing a NL80211_CMD_GET_WIPHY request for a single wiphy with split_wiphy_dump set to true, the expectation is that only a single phy object is returned, like when performing the same request without splitting, yet the current implementation returns a sparse array with only the requested phy index populated instead.

Fix this issue by special-casing NL80211_CMD_GET_WIPHY command requests with a set split_wiphy_dump attribute. Also implicitly set the NLM_F_DUMP flag in this case as it is required for the kernel to send all information.

When performing a `NL80211_CMD_GET_WIPHY` request for a single wiphy with
`split_wiphy_dump` set to true, the expectation is that only a single phy
object is returned, like when performing the same request without splitting,
yet the current implementation returns a sparse array with only the
requested phy index populated instead.

Fix this issue by special-casing NL80211_CMD_GET_WIPHY command requests
with a set `split_wiphy_dump` attribute. Also implicitly set the
`NLM_F_DUMP` flag in this case as it is required for the kernel to send
all information.

Signed-off-by: Jo-Philipp Wich <[email protected]>
@jow- jow- merged commit 3f7035c into master Dec 5, 2024
3 checks passed
@jow- jow- deleted the nl80211-single-split-wiphy-dump branch December 5, 2024 14:40
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.

1 participant