mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 05:39:24 +01:00
wiphy: don't parse dumps from unregistered wiphy's
There is no reason to parse these since IWD won't use them.
This commit is contained in:
parent
16b420e2ff
commit
3a87b6c518
@ -2015,6 +2015,10 @@ static void wiphy_dump_callback(struct l_genl_msg *msg,
|
||||
if (L_WARN_ON(!wiphy))
|
||||
return;
|
||||
|
||||
/* Unregistered means the wiphy is blacklisted, don't bother parsing */
|
||||
if (!wiphy->registered)
|
||||
return;
|
||||
|
||||
while (l_genl_attr_next(&bands, &type, NULL, NULL)) {
|
||||
switch (type) {
|
||||
case NL80211_BAND_2GHZ:
|
||||
|
Loading…
Reference in New Issue
Block a user