wifi: cfg80211: Fix return value in scan logic
PATCH 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.
This bug was introduced in commit c8cb5b854b40f
('nl80211/cfg80211: support 6 GHz scanning').
--- 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 3 lines · On Wed, 19 Jul 2023 17:51:20 +0300 Ilan Peer wrote:
As
cfg80211_parse_colocated_ap()is not expected to return a negative value return 0 and not a negative value ifcfg80211_calc_short_ssid()fails.
What's the user visible impact of this issue?
Quoted 2 lines
This bug was introduced in commit
c8cb5b854b40f
('nl80211/cfg80211: support 6 GHz scanning').
And if it does indeed have user-visible impact please use the formal Fixes tag format.
Quoted 1 line
Signed-off-by Ilan Peer <[email protected]>
Quoted 5 lines · On Wed, 19 Jul 2023 11:00:18 -0700 Jakub Kicinski wrote:
Quoted 2 lines
This bug was introduced in commit
c8cb5b854b40f
('nl80211/cfg80211: support 6 GHz scanning').And if it does indeed have user-visible impact please use the formal Fixes tag format.
Oh yeah, it's from a user report on the list. You should definitely add a Fixes tag, and Link: (possibly multiple if there were multiple) to the report.
Hi,
Quoted 8 lines
-----Original Message-----
From: Jakub Kicinski <[email protected]>
Sent: Wednesday, July 19, 2023 21:05
To: Peer, Ilan <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH] wifi: cfg80211: Fix return value in scan logicOn Wed, 19 Jul 2023 11:00:18 -0700 Jakub Kicinski wrote:
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
This bug was introduced in commit
c8cb5b854b40f
('nl80211/cfg80211: support 6 GHz scanning').And if it does indeed have user-visible impact please use the formal Fixes tag format.
Oh yeah, it's from a user report on the list. You should definitely add a Fixes tag, and Link: (possibly multiple if there were multiple) to the report.
Done. Thanks!
Ilan.