mac80211: ibss: use beacon_data struct for beacon and probe response

Instead of having an SKB all the time, use a beacon_data struct
with just the information required. This also allows removing a
synchronize_rcu() and using kfree_rcu() instead.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg
2013-03-07 20:54:29 +01:00
parent 1852d40eab
commit c3ffeab434
3 changed files with 70 additions and 71 deletions

View File

@@ -508,8 +508,7 @@ struct ieee80211_if_ibss {
unsigned long ibss_join_req;
/* probe response/beacon for IBSS */
struct sk_buff __rcu *presp;
struct sk_buff *skb;
struct beacon_data __rcu *presp;
spinlock_t incomplete_lock;
struct list_head incomplete_stations;