X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/5a2812db7d1cd11b45d05126444af3f945c77af5..b1ba0300937e1e65ceff00c19e3842ae3d894f36:/package/mac80211/patches/540-mac80211_add_rx_rate.patch diff --git a/package/mac80211/patches/540-mac80211_add_rx_rate.patch b/package/mac80211/patches/540-mac80211_add_rx_rate.patch index b15bd9576..d365f3524 100644 --- a/package/mac80211/patches/540-mac80211_add_rx_rate.patch +++ b/package/mac80211/patches/540-mac80211_add_rx_rate.patch @@ -132,7 +132,7 @@ 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 @@ -141,7 +141,7 @@ * @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; @@ -152,7 +152,7 @@ /* --- 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);