kmod-ipsec: fix a compile error with some configurations. since CONFIG_XFRM_IPCOMP...
[openwrt.git] / package / mac80211 / patches / 800-mac80211_aggr_fix.patch
1 --- a/net/mac80211/iface.c
2 +++ b/net/mac80211/iface.c
3 @@ -756,7 +756,7 @@ static void ieee80211_iface_work(struct 
4                         int len = skb->len;
5  
6                         mutex_lock(&local->sta_mtx);
7 -                       sta = sta_info_get(sdata, mgmt->sa);
8 +                       sta = sta_info_get_bss(sdata, mgmt->sa);
9                         if (sta) {
10                                 switch (mgmt->u.action.u.addba_req.action_code) {
11                                 case WLAN_ACTION_ADDBA_REQ:
12 @@ -797,7 +797,7 @@ static void ieee80211_iface_work(struct 
13                          * right, so terminate the session.
14                          */
15                         mutex_lock(&local->sta_mtx);
16 -                       sta = sta_info_get(sdata, mgmt->sa);
17 +                       sta = sta_info_get_bss(sdata, mgmt->sa);
18                         if (sta) {
19                                 u16 tid = *ieee80211_get_qos_ctl(hdr) &
20                                                 IEEE80211_QOS_CTL_TID_MASK;