summaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-07-15 18:44:12 -0700
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 16:29:53 -0400
commitb73d70ad8665fd3f35c855075b9a94de3e2b69e2 (patch)
treebc07ccdf922eb7e5a1b3c49eb2f620000c6b3bdd /net/mac80211/tx.c
parentd298487260d01934a8df3a4a2a09513d84a8e69b (diff)
downloadop-kernel-dev-b73d70ad8665fd3f35c855075b9a94de3e2b69e2.zip
op-kernel-dev-b73d70ad8665fd3f35c855075b9a94de3e2b69e2.tar.gz
mac80211: rx.c/tx.c remove more users of tx/rx_data->fc
Those functions that still use ieee80211_get_hdrlen are moved over to use the little endian frame control. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 4788f7b..24146f3 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1025,7 +1025,7 @@ __ieee80211_tx_prepare(struct ieee80211_tx_data *tx,
else if (test_and_clear_sta_flags(tx->sta, WLAN_STA_CLEAR_PS_FILT))
info->flags |= IEEE80211_TX_CTL_CLEAR_PS_FILT;
- hdrlen = ieee80211_get_hdrlen(tx->fc);
+ hdrlen = ieee80211_hdrlen(hdr->frame_control);
if (skb->len > hdrlen + sizeof(rfc1042_header) + 2) {
u8 *pos = &skb->data[hdrlen + sizeof(rfc1042_header)];
tx->ethertype = (pos[0] << 8) | pos[1];
OpenPOWER on IntegriCloud