aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/subsys/397-disable-mbssid.patch
blob: 5bd33c4588609c88d8ec4b97b44b7531b6f2eb38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1406,6 +1406,7 @@ static size_t ieee802_11_find_bssid_prof
 	if (!bss_bssid || !transmitter_bssid)
 		return profile_len;
 
+	return 0;
 	for_each_element_id(elem, WLAN_EID_MULTIPLE_BSSID, start, len) {
 		if (elem->datalen < 2)
 			continue;
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -1982,6 +1982,7 @@ static const struct element
 	const struct element *next_mbssid;
 	const struct element *next_sub;
 
+	return NULL;
 	next_mbssid = cfg80211_find_elem(WLAN_EID_MULTIPLE_BSSID,
 					 mbssid_end,
 					 ielen - (mbssid_end - ie));
@@ -2063,6 +2064,7 @@ static void cfg80211_parse_mbssid_data(s
 	u16 capability;
 	struct cfg80211_bss *bss;
 
+	return;
 	if (!non_tx_data)
 		return;
 	if (!cfg80211_find_ie(WLAN_EID_MULTIPLE_BSSID, ie, ielen))
@@ -2221,6 +2223,7 @@ cfg80211_update_notlisted_nontrans(struc
 	const struct cfg80211_bss_ies *old;
 	u8 cpy_len;
 
+	return;
 	lockdep_assert_held(&wiphy_to_rdev(wiphy)->bss_lock);
 
 	ie = mgmt->u.probe_resp.variable;
@@ -2436,6 +2439,7 @@ cfg80211_inform_bss_frame_data(struct wi
 
 	res = cfg80211_inform_single_bss_frame_data(wiphy, data, mgmt,
 						    len, gfp);
+	return res;
 	if (!res || !wiphy->support_mbssid ||
 	    !cfg80211_find_ie(WLAN_EID_MULTIPLE_BSSID, ie, ielen))
 		return res;