projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12b5f34
)
cfg80211: ignore supported rates for nonexistant bands on scan
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 20 Nov 2013 18:40:41 +0000
(19:40 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Mon, 25 Nov 2013 15:54:26 +0000
(16:54 +0100)
Fixes wpa_supplicant p2p_find on 5GHz-only devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c
patch
|
blob
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index e20c27ff0f14cd0aff0e586026c8a02901a4bd47..138dc3bb8b67d8c345531a95ce0c8342271ce79e 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-5349,6
+5349,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),