Re: [PATCH v2] mac80211: prevent skb/txq mismatch

2017-01-13 Thread Johannes Berg
On Fri, 2017-01-13 at 13:32 +0100, Michal Kazior wrote: > Station structure is considered as not uploaded > (to driver) until drv_sta_state() finishes. This > call is however done after the structure is > attached to mac80211 internal lists and hashes. > This means mac80211 can lookup (and use) sta

[PATCH v2] mac80211: prevent skb/txq mismatch

2017-01-13 Thread Michal Kazior
Station structure is considered as not uploaded (to driver) until drv_sta_state() finishes. This call is however done after the structure is attached to mac80211 internal lists and hashes. This means mac80211 can lookup (and use) station structure before it is uploaded to a driver. If this happens