ath5k: channel change fix
[openwrt/staging/yousong.git] / package / kernel / mac80211 / patches / 316-mac80211-minstrel-switch-to-.tx_status_noskb.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Sat, 15 Nov 2014 22:38:07 +0100
3 Subject: [PATCH] mac80211: minstrel: switch to .tx_status_noskb
4
5 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
6 ---
7
8 --- a/net/mac80211/rc80211_minstrel.c
9 +++ b/net/mac80211/rc80211_minstrel.c
10 @@ -223,11 +223,10 @@ minstrel_update_stats(struct minstrel_pr
11 static void
12 minstrel_tx_status(void *priv, struct ieee80211_supported_band *sband,
13 struct ieee80211_sta *sta, void *priv_sta,
14 - struct sk_buff *skb)
15 + struct ieee80211_tx_info *info)
16 {
17 struct minstrel_priv *mp = priv;
18 struct minstrel_sta_info *mi = priv_sta;
19 - struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
20 struct ieee80211_tx_rate *ar = info->status.rates;
21 int i, ndx;
22 int success;
23 @@ -674,7 +673,7 @@ static u32 minstrel_get_expected_through
24
25 const struct rate_control_ops mac80211_minstrel = {
26 .name = "minstrel",
27 - .tx_status = minstrel_tx_status,
28 + .tx_status_noskb = minstrel_tx_status,
29 .get_rate = minstrel_get_rate,
30 .rate_init = minstrel_rate_init,
31 .alloc = minstrel_alloc,