aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/mac80211/ieee80211_i.h31
-rw-r--r--net/mac80211/scan.c9
2 files changed, 0 insertions, 40 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 12666c2ed49e..e4ee16839c6d 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -95,12 +95,6 @@ struct ieee80211_bss {
95 bool wmm_used; 95 bool wmm_used;
96 bool uapsd_supported; 96 bool uapsd_supported;
97 97
98#ifdef CONFIG_MAC80211_MESH
99 u8 *mesh_id;
100 size_t mesh_id_len;
101 u8 *mesh_cfg;
102#endif
103
104#define IEEE80211_MAX_SUPP_RATES 32 98#define IEEE80211_MAX_SUPP_RATES 32
105 u8 supp_rates[IEEE80211_MAX_SUPP_RATES]; 99 u8 supp_rates[IEEE80211_MAX_SUPP_RATES];
106 size_t supp_rates_len; 100 size_t supp_rates_len;
@@ -151,31 +145,6 @@ enum ieee80211_bss_valid_data_flags {
151 IEEE80211_BSS_VALID_ERP = BIT(3) 145 IEEE80211_BSS_VALID_ERP = BIT(3)
152}; 146};
153 147
154static inline u8 *bss_mesh_cfg(struct ieee80211_bss *bss)
155{
156#ifdef CONFIG_MAC80211_MESH
157 return bss->mesh_cfg;
158#endif
159 return NULL;
160}
161
162static inline u8 *bss_mesh_id(struct ieee80211_bss *bss)
163{
164#ifdef CONFIG_MAC80211_MESH
165 return bss->mesh_id;
166#endif
167 return NULL;
168}
169
170static inline u8 bss_mesh_id_len(struct ieee80211_bss *bss)
171{
172#ifdef CONFIG_MAC80211_MESH
173 return bss->mesh_id_len;
174#endif
175 return 0;
176}
177
178
179typedef unsigned __bitwise__ ieee80211_tx_result; 148typedef unsigned __bitwise__ ieee80211_tx_result;
180#define TX_CONTINUE ((__force ieee80211_tx_result) 0u) 149#define TX_CONTINUE ((__force ieee80211_tx_result) 0u)
181#define TX_DROP ((__force ieee80211_tx_result) 1u) 150#define TX_DROP ((__force ieee80211_tx_result) 1u)
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index f69a1b9cb131..061595ae513b 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -29,14 +29,6 @@
29#define IEEE80211_CHANNEL_TIME (HZ / 33) 29#define IEEE80211_CHANNEL_TIME (HZ / 33)
30#define IEEE80211_PASSIVE_CHANNEL_TIME (HZ / 8) 30#define IEEE80211_PASSIVE_CHANNEL_TIME (HZ / 8)
31 31
32static void ieee80211_rx_bss_free(struct cfg80211_bss *cbss)
33{
34 struct ieee80211_bss *bss = (void *)cbss->priv;
35
36 kfree(bss_mesh_id(bss));
37 kfree(bss_mesh_cfg(bss));
38}
39
40void ieee80211_rx_bss_put(struct ieee80211_local *local, 32void ieee80211_rx_bss_put(struct ieee80211_local *local,
41 struct ieee80211_bss *bss) 33 struct ieee80211_bss *bss)
42{ 34{
@@ -85,7 +77,6 @@ ieee80211_bss_info_update(struct ieee80211_local *local,
85 if (!cbss) 77 if (!cbss)
86 return NULL; 78 return NULL;
87 79
88 cbss->free_priv = ieee80211_rx_bss_free;
89 bss = (void *)cbss->priv; 80 bss = (void *)cbss->priv;
90 81
91 bss->device_ts = rx_status->device_timestamp; 82 bss->device_ts = rx_status->device_timestamp;