mac80211: sync with trunk (as of r25965)
[openwrt-10.03/.git] / package / mac80211 / patches / 540-mac80211_add_rx_rate.patch
index b15bd95769fc80ee907d1921649e68ab68e32253..d365f352451f50f3ebd095d1083f076e05aa9c30 100644 (file)
                NLA_PUT_U32(msg, NL80211_STA_INFO_RX_PACKETS,
 --- a/net/mac80211/sta_info.h
 +++ b/net/mac80211/sta_info.h
-@@ -209,6 +209,8 @@ enum plink_state {
+@@ -212,6 +212,8 @@ enum plink_state {
   * @rate_ctrl_priv: rate control private per-STA pointer
   * @last_tx_rate: rate used for last transmit, to report to userspace as
   *    "the" transmit rate
   * @lock: used for locking all fields that require locking, see comments
   *    in the header file.
   * @flaglock: spinlock for flags accesses
-@@ -311,6 +313,8 @@ struct sta_info {
+@@ -314,6 +316,8 @@ struct sta_info {
        unsigned long tx_bytes;
        unsigned long tx_fragments;
        struct ieee80211_tx_rate last_tx_rate;
        /*
 --- a/net/mac80211/rx.c
 +++ b/net/mac80211/rx.c
-@@ -1166,14 +1166,23 @@ ieee80211_rx_h_sta_process(struct ieee80
+@@ -1156,14 +1156,23 @@ ieee80211_rx_h_sta_process(struct ieee80
        if (rx->sdata->vif.type == NL80211_IFTYPE_ADHOC) {
                u8 *bssid = ieee80211_get_bssid(hdr, rx->skb->len,
                                                NL80211_IFTYPE_ADHOC);