wifi: cfg80211: Fix return value in scan logic
PATCH v2 1/1 wifi: cfg80211: Fix return value in scan logic
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 c8cb5b854b40f ("nl80211/cfg80211: support 6 GHz scanning")
Signed-off-by Ilan Peer <[email protected]>
--- net/wireless/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/scan.c +1 -1
@@ -657,7 +657,7 @@ static int cfg80211_parse_colocated_ap(const struct cfg80211_bss_ies *ies, ret =cfg80211_calc_short_ssid (ies, &ssid_elem, &s_ssid_tmp);if (ret) -return ret; +return 0 ;for_each_element_id (elem,WLAN_EID_REDUCED_NEIGHBOR_REPORT , ies->data, ies->len) {
Signature · 1 line
2.25.1
Quoted 11 lines · Ilan Peer
The reporter noticed a warning when running iwlwifi:
WARNING: CPU: 8 PID: 659 at mm/page_alloc.c:4453 __alloc_pages+0x329/0x340As
cfg80211_parse_colocated_ap()is not expected to return a negative value return 0 and not a negative value ifcfg80211_calc_short_ssid()fails.Fixes c8cb5b854b40f ("nl80211/cfg80211: support 6 GHz scanning")Signed-off-by Ilan Peer <[email protected]>
Patch applied to wireless.git, thanks.
fd7f08d92fcd wifi: cfg80211: Fix return value in scan logic
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches