3
0
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:
James Prestwood 2022-12-16 13:27:37 -08:00 committed by Denis Kenzior
parent 16b420e2ff
commit 3a87b6c518

View File

@ -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: