Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c3bce22 authored by Felix Fietkau's avatar Felix Fietkau Committed by Ahmad Kholaif
Browse files

cfg80211: ignore supported rates for nonexistant bands on scan



Fixes wpa_supplicant p2p_find on 5GHz-only devices

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Git-commit: 1b09cd82d8c479700ef6185665839d1020b02519
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Change-Id: Icadd03bfff17c5fd8da3e15e7b69b42a730e0ef0
Signed-off-by: default avatarAhmad Kholaif <akholaif@codeaurora.org>
parent 1afd4e87
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5327,6 +5327,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),