diff options
| author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
|---|---|---|
| committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
| commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
| tree | 644b88f8a71896307d71438e9b3af49126ffb22b /net/mac80211 | |
| parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
| parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) | |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'net/mac80211')
49 files changed, 6624 insertions, 4151 deletions
diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig index 4d5543af3123..a952b7f8c648 100644 --- a/net/mac80211/Kconfig +++ b/net/mac80211/Kconfig | |||
| @@ -96,18 +96,6 @@ menuconfig MAC80211_DEBUG_MENU | |||
| 96 | ---help--- | 96 | ---help--- |
| 97 | This option collects various mac80211 debug settings. | 97 | This option collects various mac80211 debug settings. |
| 98 | 98 | ||
| 99 | config MAC80211_DEBUG_PACKET_ALIGNMENT | ||
| 100 | bool "Enable packet alignment debugging" | ||
| 101 | depends on MAC80211_DEBUG_MENU | ||
| 102 | ---help--- | ||
| 103 | This option is recommended for driver authors and strongly | ||
| 104 | discouraged for everybody else, it will trigger a warning | ||
| 105 | when a driver hands mac80211 a buffer that is aligned in | ||
| 106 | a way that will cause problems with the IP stack on some | ||
| 107 | architectures. | ||
| 108 | |||
| 109 | Say N unless you're writing a mac80211 based driver. | ||
| 110 | |||
| 111 | config MAC80211_NOINLINE | 99 | config MAC80211_NOINLINE |
| 112 | bool "Do not inline TX/RX handlers" | 100 | bool "Do not inline TX/RX handlers" |
| 113 | depends on MAC80211_DEBUG_MENU | 101 | depends on MAC80211_DEBUG_MENU |
| @@ -194,6 +182,19 @@ config MAC80211_VERBOSE_MPL_DEBUG | |||
| 194 | 182 | ||
| 195 | Do not select this option. | 183 | Do not select this option. |
| 196 | 184 | ||
| 185 | config MAC80211_VERBOSE_MHWMP_DEBUG | ||
| 186 | bool "Verbose mesh HWMP routing debugging" | ||
| 187 | depends on MAC80211_DEBUG_MENU | ||
| 188 | depends on MAC80211_MESH | ||
| 189 | ---help--- | ||
| 190 | Selecting this option causes mac80211 to print out very | ||
| 191 | verbose mesh routing (HWMP) debugging messages (when mac80211 | ||
| 192 | is taking part in a mesh network). | ||
| 193 | It should not be selected on production systems as those | ||
| 194 | messages are remotely triggerable. | ||
| 195 | |||
| 196 | Do not select this option. | ||
| 197 | |||
| 197 | config MAC80211_DEBUG_COUNTERS | 198 | config MAC80211_DEBUG_COUNTERS |
| 198 | bool "Extra statistics for TX/RX debugging" | 199 | bool "Extra statistics for TX/RX debugging" |
| 199 | depends on MAC80211_DEBUG_MENU | 200 | depends on MAC80211_DEBUG_MENU |
diff --git a/net/mac80211/Makefile b/net/mac80211/Makefile index 9f3cf7129324..04420291e7ad 100644 --- a/net/mac80211/Makefile +++ b/net/mac80211/Makefile | |||
| @@ -2,14 +2,14 @@ obj-$(CONFIG_MAC80211) += mac80211.o | |||
| 2 | 2 | ||
| 3 | # mac80211 objects | 3 | # mac80211 objects |
| 4 | mac80211-y := \ | 4 | mac80211-y := \ |
| 5 | main.o \ | 5 | main.o status.o \ |
| 6 | sta_info.o \ | 6 | sta_info.o \ |
| 7 | wep.o \ | 7 | wep.o \ |
| 8 | wpa.o \ | 8 | wpa.o \ |
| 9 | scan.o \ | 9 | scan.o offchannel.o \ |
| 10 | ht.o agg-tx.o agg-rx.o \ | 10 | ht.o agg-tx.o agg-rx.o \ |
| 11 | ibss.o \ | 11 | ibss.o \ |
| 12 | mlme.o \ | 12 | mlme.o work.o \ |
| 13 | iface.o \ | 13 | iface.o \ |
| 14 | rate.o \ | 14 | rate.o \ |
| 15 | michael.o \ | 15 | michael.o \ |
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c index ce8e0e772bab..f9516a27e233 100644 --- a/net/mac80211/agg-rx.c +++ b/net/mac80211/agg-rx.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | #include <linux/ieee80211.h> | 16 | #include <linux/ieee80211.h> |
| 17 | #include <linux/slab.h> | ||
| 17 | #include <net/mac80211.h> | 18 | #include <net/mac80211.h> |
| 18 | #include "ieee80211_i.h" | 19 | #include "ieee80211_i.h" |
| 19 | #include "driver-ops.h" | 20 | #include "driver-ops.h" |
| @@ -41,7 +42,7 @@ void __ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid, | |||
| 41 | sta->sta.addr, tid); | 42 | sta->sta.addr, tid); |
| 42 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 43 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
| 43 | 44 | ||
| 44 | if (drv_ampdu_action(local, IEEE80211_AMPDU_RX_STOP, | 45 | if (drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_STOP, |
| 45 | &sta->sta, tid, NULL)) | 46 | &sta->sta, tid, NULL)) |
| 46 | printk(KERN_DEBUG "HW problem - can not stop rx " | 47 | printk(KERN_DEBUG "HW problem - can not stop rx " |
| 47 | "aggregation for tid %d\n", tid); | 48 | "aggregation for tid %d\n", tid); |
| @@ -82,12 +83,11 @@ void __ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid, | |||
| 82 | void ieee80211_sta_stop_rx_ba_session(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, | 83 | void ieee80211_sta_stop_rx_ba_session(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, |
| 83 | u16 initiator, u16 reason) | 84 | u16 initiator, u16 reason) |
| 84 | { | 85 | { |
| 85 | struct ieee80211_local *local = sdata->local; | ||
| 86 | struct sta_info *sta; | 86 | struct sta_info *sta; |
| 87 | 87 | ||
| 88 | rcu_read_lock(); | 88 | rcu_read_lock(); |
| 89 | 89 | ||
| 90 | sta = sta_info_get(local, ra); | 90 | sta = sta_info_get(sdata, ra); |
| 91 | if (!sta) { | 91 | if (!sta) { |
| 92 | rcu_read_unlock(); | 92 | rcu_read_unlock(); |
| 93 | return; | 93 | return; |
| @@ -135,7 +135,7 @@ static void ieee80211_send_addba_resp(struct ieee80211_sub_if_data *sdata, u8 *d | |||
| 135 | 135 | ||
| 136 | if (!skb) { | 136 | if (!skb) { |
| 137 | printk(KERN_DEBUG "%s: failed to allocate buffer " | 137 | printk(KERN_DEBUG "%s: failed to allocate buffer " |
| 138 | "for addba resp frame\n", sdata->dev->name); | 138 | "for addba resp frame\n", sdata->name); |
| 139 | return; | 139 | return; |
| 140 | } | 140 | } |
| 141 | 141 | ||
| @@ -143,10 +143,10 @@ static void ieee80211_send_addba_resp(struct ieee80211_sub_if_data *sdata, u8 *d | |||
