mac80211: factor out station lookup from ieee80211_build_hdr()
authorJohannes Berg <johannes.berg@intel.com>
Sat, 21 Mar 2015 08:13:45 +0000 (09:13 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 30 Mar 2015 08:47:19 +0000 (10:47 +0200)
commit97ffe75791b3e9c0797d5891070e41321c3beccb
treefd80b39d90a80c1b6f83d748fc512dab5f15e5b5
parent527871d7206dac2733d0bae52f5a328811d299ee
mac80211: factor out station lookup from ieee80211_build_hdr()

In order to look up the RA station earlier to implement a TX
fastpath, factor out the lookup from ieee80211_build_hdr().
To always have a valid station pointer, also move some of the
checks into the new function.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c