Skip to content

Commit fd7f08d

Browse files
ilanpeer2Kalle Valo
authored andcommitted
wifi: cfg80211: Fix return value in scan logic
The reporter noticed a warning when running iwlwifi: WARNING: CPU: 8 PID: 659 at mm/page_alloc.c:4453 __alloc_pages+0x329/0x340 As cfg80211_parse_colocated_ap() is not expected to return a negative value return 0 and not a negative value if cfg80211_calc_short_ssid() fails. Fixes: c8cb5b8 ("nl80211/cfg80211: support 6 GHz scanning") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217675 Signed-off-by: Ilan Peer <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d265ebe commit fd7f08d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/wireless/scan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ static int cfg80211_parse_colocated_ap(const struct cfg80211_bss_ies *ies,
657657

658658
ret = cfg80211_calc_short_ssid(ies, &ssid_elem, &s_ssid_tmp);
659659
if (ret)
660-
return ret;
660+
return 0;
661661

662662
for_each_element_id(elem, WLAN_EID_REDUCED_NEIGHBOR_REPORT,
663663
ies->data, ies->len) {

0 commit comments

Comments
 (0)