Skip to contentSkip to conversation

cfg80211/mac80211: Revert "move information element parsing logic to cfg80211"

PATCH Superseded Johannes Berg 2 participants 3 messages Nov 18, 2011

Subsystems (2)
lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 cfg80211/mac80211: Revert "move information element parsing logic to cfg80211"

From: Johannes Berg <[email protected]>

No other driver ever ended up using this, and the commit forgot to move the prototype so no driver could have used it. Revert it, if any driver shows up and needs it it can be moved again, but until then it's more efficient to have it in mac80211 where the only user is.

---
 include/net/cfg80211.h     |   63 ----------------
 net/mac80211/ieee80211_i.h |   63 ++++++++++++++++
 net/mac80211/util.c        |  166 ++++++++++++++++++++++++++++++++++++++++++++
 net/wireless/util.c        |  167 ---------------------------------------------
 4 files changed, 229 insertions(+), 230 deletions(-)
include/net/cfg80211.h +0 -63
@@ -2391,69 +2391,6 @@ extern int ieee80211_radiotap_iterator_n
 extern const unsigned char rfc1042_header[6];
 extern const unsigned char bridge_tunnel_header[6];
 
-/* Parsed Information Elements */
-struct ieee802_11_elems {
-	u8 *ie_start;
-	size_t total_len;
-
-	/* pointers to IEs */
-	u8 *ssid;
-	u8 *supp_rates;
-	u8 *fh_params;
-	u8 *ds_params;
-	u8 *cf_params;
-	struct ieee80211_tim_ie *tim;
-	u8 *ibss_params;
-	u8 *challenge;
-	u8 *wpa;
-	u8 *rsn;
-	u8 *erp_info;
-	u8 *ext_supp_rates;
-	u8 *wmm_info;
-	u8 *wmm_param;
-	struct ieee80211_ht_cap *ht_cap_elem;
-	struct ieee80211_ht_info *ht_info_elem;
-	struct ieee80211_meshconf_ie *mesh_config;
-	u8 *mesh_id;
-	u8 *peering;
-	u8 *preq;
-	u8 *prep;
-	u8 *perr;
-	struct ieee80211_rann_ie *rann;
-	u8 *ch_switch_elem;
-	u8 *country_elem;
-	u8 *pwr_constr_elem;
-	u8 *quiet_elem;	/* first quite element */
-	u8 *timeout_int;
-
-	/* length of them, respectively */
-	u8 ssid_len;
-	u8 supp_rates_len;
-	u8 fh_params_len;
-	u8 ds_params_len;
-	u8 cf_params_len;
-	u8 tim_len;
-	u8 ibss_params_len;
-	u8 challenge_len;
-	u8 wpa_len;
-	u8 rsn_len;
-	u8 erp_info_len;
-	u8 ext_supp_rates_len;
-	u8 wmm_info_len;
-	u8 wmm_param_len;
-	u8 mesh_id_len;
-	u8 peering_len;
-	u8 preq_len;
-	u8 prep_len;
-	u8 perr_len;
-	u8 ch_switch_elem_len;
-	u8 country_elem_len;
-	u8 pwr_constr_elem_len;
-	u8 quiet_elem_len;
-	u8 num_of_quiet_elem;	/* can be more the one */
-	u8 timeout_int_len;
-};
-
 /**
  * ieee80211_get_hdrlen_from_skb - get header length from data
  *
net/mac80211/ieee80211_i.h +63 -0

69 lines not on this page · raw message

net/mac80211/util.c +166 -0

172 lines not on this page · raw message

net/wireless/util.c +0 -167

170 lines not on this page · raw message

author maintainer
#1 lore raw

PATCH v2 1/1 cfg80211/mac80211: Revert "move information element parsing logic to cfg80211"

From: Johannes Berg <[email protected]>

No other driver ever ended up using this, and the commit forgot to move the prototype so no driver could have used it. Revert it, if any driver shows up and needs it it can be moved again, but until then it's more efficient to have it in mac80211 where the only user is.

---
v2: refresh patch to include necessary move of crc32.h include, sorry!

 include/net/cfg80211.h     |   63 ----------------
 net/mac80211/ieee80211_i.h |   63 ++++++++++++++++
 net/mac80211/util.c        |  167 ++++++++++++++++++++++++++++++++++++++++++++
 net/wireless/util.c        |  168 ---------------------------------------------
 4 files changed, 230 insertions(+), 231 deletions(-)
include/net/cfg80211.h +0 -63
@@ -2391,69 +2391,6 @@ extern int ieee80211_radiotap_iterator_n
 extern const unsigned char rfc1042_header[6];
 extern const unsigned char bridge_tunnel_header[6];
 
-/* Parsed Information Elements */
-struct ieee802_11_elems {
-	u8 *ie_start;
-	size_t total_len;
-
-	/* pointers to IEs */
-	u8 *ssid;
-	u8 *supp_rates;
-	u8 *fh_params;
-	u8 *ds_params;
-	u8 *cf_params;
-	struct ieee80211_tim_ie *tim;
-	u8 *ibss_params;
-	u8 *challenge;
-	u8 *wpa;
-	u8 *rsn;
-	u8 *erp_info;
-	u8 *ext_supp_rates;
-	u8 *wmm_info;
-	u8 *wmm_param;
-	struct ieee80211_ht_cap *ht_cap_elem;
-	struct ieee80211_ht_info *ht_info_elem;
-	struct ieee80211_meshconf_ie *mesh_config;
-	u8 *mesh_id;
-	u8 *peering;
-	u8 *preq;
-	u8 *prep;
-	u8 *perr;
-	struct ieee80211_rann_ie *rann;
-	u8 *ch_switch_elem;
-	u8 *country_elem;
-	u8 *pwr_constr_elem;
-	u8 *quiet_elem;	/* first quite element */
-	u8 *timeout_int;
-
-	/* length of them, respectively */
-	u8 ssid_len;
-	u8 supp_rates_len;
-	u8 fh_params_len;
-	u8 ds_params_len;
-	u8 cf_params_len;
-	u8 tim_len;
-	u8 ibss_params_len;
-	u8 challenge_len;
-	u8 wpa_len;
-	u8 rsn_len;
-	u8 erp_info_len;
-	u8 ext_supp_rates_len;
-	u8 wmm_info_len;
-	u8 wmm_param_len;
-	u8 mesh_id_len;
-	u8 peering_len;
-	u8 preq_len;
-	u8 prep_len;
-	u8 perr_len;
-	u8 ch_switch_elem_len;
-	u8 country_elem_len;
-	u8 pwr_constr_elem_len;
-	u8 quiet_elem_len;
-	u8 num_of_quiet_elem;	/* can be more the one */
-	u8 timeout_int_len;
-};
-
 /**
  * ieee80211_get_hdrlen_from_skb - get header length from data
  *
net/mac80211/ieee80211_i.h +63 -0

69 lines not on this page · raw message

net/mac80211/util.c +167 -0

179 lines not on this page · raw message

net/wireless/util.c +0 -168

177 lines not on this page · raw message

#2 lore raw

SGkgSm9oYW5uZXMsDQoNCj4gU3ViamVjdDogW1BBVENIIHYyXSBjZmc4MDIxMS9tYWM4MDIxMTog UmV2ZXJ0ICJtb3ZlIGluZm9ybWF0aW9uIGVsZW1lbnQgcGFyc2luZyBsb2dpYyB0byBjZmc4MDIx MSINCj4gDQo+IEZyb206IEpvaGFubmVzIEJlcmcgPGpvaGFubmVzLmJlcmdAaW50ZWwuY29tPg0K PiANCj4gTm8gb3RoZXIgZHJpdmVyIGV2ZXIgZW5kZWQgdXAgdXNpbmcgdGhpcywgYW5kDQo+IHRo ZSBjb21taXQgZm9yZ290IHRvIG1vdmUgdGhlIHByb3RvdHlwZSBzbyBubw0KPiBkcml2ZXIgY291 bGQgaGF2ZSB1c2VkIGl0LiBSZXZlcnQgaXQsIGlmIGFueQ0KPiBkcml2ZXIgc2hvd3MgdXAgYW5k IG5lZWRzIGl0IGl0IGNhbiBiZSBtb3ZlZA0KPiBhZ2FpbiwgYnV0IHVudGlsIHRoZW4gaXQncyBt b3JlIGVmZmljaWVudCB0bw0KPiBoYXZlIGl0IGluIG1hYzgwMjExIHdoZXJlIHRoZSBvbmx5IHVz ZXIgaXMuDQoNCkl0J3MgT0sgdG8gcmV2ZXJ0IGl0IGZvciBub3cuDQoNCldlIGFyZSBzdGlsbCB3 b3JraW5nIG9uIGEgY2xlYW51cCBwYXRjaCBpbiBtd2lmaWV4IGRyaXZlciB0aGF0IHdpbGwgbWFr ZSB1c2Ugb2YgaWVlZTgwMl8xMV9wYXJzZV9lbGVtc19jcmMoKSBmdW5jdGlvbiBhbmQgcmVtb3Zl IG91ciBvd24gSUUgcGFyc2luZyBsb2dpYy4gV2UgY2FuIG1vdmUgdGhlIGZ1bmN0aW9uIGFnYWlu IGxhdGVyIHdoZW4gb3VyIHBhdGNoIGlzIHJlYWR5Lg0KDQpUaGFua3MsDQpCaW5nDQoNCg==