mac80211: merge latest changes from trunk (as of r29296)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 23 Nov 2011 14:01:37 +0000 (14:01 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 23 Nov 2011 14:01:37 +0000 (14:01 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@29297 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/022-atomic64_backport.patch
package/mac80211/patches/513-ath9k_channelbw_debugfs.patch
package/mac80211/patches/560-mac80211_fix_ap_vlan_aggr.patch [new file with mode: 0644]

index ab77f76ad0207b06128598e7e8667b3bade7c3d0..673b7c336a6b5a3777718cf8e66f51a458b4489a 100644 (file)
@@ -38,7 +38,7 @@
 +#include <linux/spinlock.h>
 +#include <linux/module.h>
 +
 +#include <linux/spinlock.h>
 +#include <linux/module.h>
 +
-+#if !defined(CONFIG_X86) && !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) && defined(CONFIG_ARM) && !defined(CONFIG_GENERIC_ATOMIC64))
++#if !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)) && (defined(CONFIG_UML) || defined(CONFIG_X86))) && !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) && defined(CONFIG_ARM) && !defined(CONFIG_GENERIC_ATOMIC64))
 +
 +static DEFINE_SPINLOCK(lock);
 +
 +
 +static DEFINE_SPINLOCK(lock);
 +
index ded102e1447900ddbd21a16760b9124c63c6cafd..ef568dc2ad22106d6cd245854b13891cb9ded79f 100644 (file)
@@ -51,7 +51,7 @@
 +              return -EINVAL;
 +
 +      sc->chan_bw = chan_bw;
 +              return -EINVAL;
 +
 +      sc->chan_bw = chan_bw;
-+      if (!sc->ps_idle)
++      if (!(sc->sc_flags & SC_OP_INVALID))
 +              ath9k_config(sc->hw, IEEE80211_CONF_CHANGE_CHANNEL);
 +
 +      return count;
 +              ath9k_config(sc->hw, IEEE80211_CONF_CHANGE_CHANNEL);
 +
 +      return count;
diff --git a/package/mac80211/patches/560-mac80211_fix_ap_vlan_aggr.patch b/package/mac80211/patches/560-mac80211_fix_ap_vlan_aggr.patch
new file mode 100644 (file)
index 0000000..051f1a9
--- /dev/null
@@ -0,0 +1,95 @@
+--- a/net/mac80211/driver-ops.h
++++ b/net/mac80211/driver-ops.h
+@@ -10,6 +10,16 @@ static inline void check_sdata_in_driver
+       WARN_ON(!(sdata->flags & IEEE80211_SDATA_IN_DRIVER));
+ }
++static inline struct ieee80211_sub_if_data *
++get_bss_sdata(struct ieee80211_sub_if_data *sdata)
++{
++      if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
++              sdata = container_of(sdata->bss, struct ieee80211_sub_if_data,
++                                   u.ap);
++
++      return sdata;
++}
++
+ static inline void drv_tx(struct ieee80211_local *local, struct sk_buff *skb)
+ {
+       local->ops->tx(&local->hw, skb);
+@@ -427,6 +437,7 @@ static inline void drv_sta_notify(struct
+                                 enum sta_notify_cmd cmd,
+                                 struct ieee80211_sta *sta)
+ {
++      sdata = get_bss_sdata(sdata);
+       check_sdata_in_driver(sdata);
+       trace_drv_sta_notify(local, sdata, cmd, sta);
+@@ -443,6 +454,7 @@ static inline int drv_sta_add(struct iee
+       might_sleep();
++      sdata = get_bss_sdata(sdata);
+       check_sdata_in_driver(sdata);
+       trace_drv_sta_add(local, sdata, sta);
+@@ -460,6 +472,7 @@ static inline void drv_sta_remove(struct
+ {
+       might_sleep();
++      sdata = get_bss_sdata(sdata);
+       check_sdata_in_driver(sdata);
+       trace_drv_sta_remove(local, sdata, sta);
+@@ -553,6 +566,7 @@ static inline int drv_ampdu_action(struc
+       might_sleep();
++      sdata = get_bss_sdata(sdata);
+       check_sdata_in_driver(sdata);
+       trace_drv_ampdu_action(local, sdata, action, sta, tid, ssn, buf_size);
+--- a/net/mac80211/sta_info.c
++++ b/net/mac80211/sta_info.c
+@@ -353,10 +353,6 @@ static int sta_info_finish_insert(struct
+       if (!sta->dummy || dummy_reinsert) {
+               /* notify driver */
+-              if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
+-                      sdata = container_of(sdata->bss,
+-                                           struct ieee80211_sub_if_data,
+-                                           u.ap);
+               err = drv_sta_add(local, sdata, &sta->sta);
+               if (err) {
+                       if (!async)
+--- a/net/mac80211/agg-tx.c
++++ b/net/mac80211/agg-tx.c
+@@ -550,7 +550,7 @@ void ieee80211_start_tx_ba_cb(struct iee
+       }
+       mutex_lock(&local->sta_mtx);
+-      sta = sta_info_get(sdata, ra);
++      sta = sta_info_get_bss(sdata, ra);
+       if (!sta) {
+               mutex_unlock(&local->sta_mtx);
+ #ifdef CONFIG_MAC80211_HT_DEBUG
+@@ -679,7 +679,7 @@ void ieee80211_stop_tx_ba_cb(struct ieee
+       mutex_lock(&local->sta_mtx);
+-      sta = sta_info_get(sdata, ra);
++      sta = sta_info_get_bss(sdata, ra);
+       if (!sta) {
+ #ifdef CONFIG_MAC80211_HT_DEBUG
+               printk(KERN_DEBUG "Could not find station: %pM\n", ra);
+--- a/net/mac80211/agg-rx.c
++++ b/net/mac80211/agg-rx.c
+@@ -109,7 +109,7 @@ void ieee80211_stop_rx_ba_session(struct
+       int i;
+       rcu_read_lock();
+-      sta = sta_info_get(sdata, addr);
++      sta = sta_info_get_bss(sdata, addr);
+       if (!sta) {
+               rcu_read_unlock();
+               return;