summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc_drv_main.c
diff options
context:
space:
mode:
authorFelix Fietkau2013-04-08 00:04:09 +0200
committerJohn W. Linville2013-04-10 20:10:33 +0200
commitc60c99298c50b698b0bbbe0e0146c965c322b8c1 (patch)
tree868d5991faa4dbb756778146a2d4b73c9874ae3a /drivers/net/wireless/ath/ath9k/htc_drv_main.c
parentath9k_hw: make various ar5416/ar91xx rf banks const (diff)
downloadkernel-qcow2-linux-c60c99298c50b698b0bbbe0e0146c965c322b8c1.tar.gz
kernel-qcow2-linux-c60c99298c50b698b0bbbe0e0146c965c322b8c1.tar.xz
kernel-qcow2-linux-c60c99298c50b698b0bbbe0e0146c965c322b8c1.zip
ath9k_common: remove ath9k_cmn_padpos
It is equivalent to ieee80211_hdrlen Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 098e3545e512..0743a47cef8f 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -866,7 +866,7 @@ static void ath9k_htc_tx(struct ieee80211_hw *hw,
hdr = (struct ieee80211_hdr *) skb->data;
/* Add the padding after the header if this is not already done */
- padpos = ath9k_cmn_padpos(hdr->frame_control);
+ padpos = ieee80211_hdrlen(hdr->frame_control);
padsize = padpos & 3;
if (padsize && skb->len > padpos) {
if (skb_headroom(skb) < padsize) {