mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
mac80211: merge upstream patch to suppress unnecessary ad-hoc mode scan with fixed-freq, fixed-bssid
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37764 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8f544d257d
commit
ebedc0094b
@ -2354,3 +2354,23 @@
|
||||
if (len > size)
|
||||
len = size;
|
||||
|
||||
--- a/net/mac80211/ibss.c
|
||||
+++ b/net/mac80211/ibss.c
|
||||
@@ -792,6 +792,17 @@ static void ieee80211_sta_find_ibss(stru
|
||||
return;
|
||||
}
|
||||
|
||||
+ /* if a fixed bssid and a fixed freq have been provided create the IBSS
|
||||
+ * directly and do not waste time scanning
|
||||
+ */
|
||||
+ if (ifibss->fixed_bssid && ifibss->fixed_channel) {
|
||||
+ sdata_info(sdata, "Created IBSS using preconfigured BSSID %pM\n",
|
||||
+ bssid);
|
||||
+ ieee80211_sta_create_ibss(sdata);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+
|
||||
ibss_dbg(sdata, "sta_find_ibss: did not try to join ibss\n");
|
||||
|
||||
/* Selected IBSS not found in current scan results - try to scan */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user