cfg80211: ignore supported rates for nonexistant bands on scan
PATCH 1/1 cfg80211: ignore supported rates for nonexistant bands on scan
Fixes wpa_supplicant p2p_find on 5GHz-only devices
Signed-off-by Felix Fietkau <[email protected]>
--- net/wireless/nl80211.c | 4 ++++ 1 file changed, 4 insertions(+)
net/wireless/nl80211.c +4 -0
@@ -5330,6 +5330,10 @@ static int nl80211_trigger_scan(struct sk_buff *skb, struct genl_info *info) err = -EINVAL ; goto out_free; } + +if (!wiphy->bands[band]) +continue ; + err = ieee80211_get_ratemask(wiphy->bands[band], nla_data(attr), nla_len(attr),
Signature · 1 line
1.8.3.4 (Apple Git-47)
Quoted 1 line · Felix Fietkau
Fixes
wpa_supplicantp2p_findon 5GHz-only devices
Applied. Not that your scenario really makes sense, but hey :)
johannes