From: Oleksij Rempel Date: Sat, 11 May 2013 16:06:21 +0000 (+0200) Subject: remove ieee80211_hdrsize_padding X-Git-Tag: 1.4.0~12^2^2~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ca0503a0753bf5b7e874bffc1c490c32fd06269;p=librecmc%2Fopen-ath9k-htc-firmware.git remove ieee80211_hdrsize_padding Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/wlan/ieee80211_var.h b/target_firmware/wlan/ieee80211_var.h index 572d812..b410f66 100755 --- a/target_firmware/wlan/ieee80211_var.h +++ b/target_firmware/wlan/ieee80211_var.h @@ -200,28 +200,6 @@ ieee80211_hdrsize(const void *data) return size; } -/* - * Return the size of the 802.11 header for a management or data frame. - */ -static __inline a_int32_t -ieee80211_hdrsize_padding(const void *data) -{ - const struct ieee80211_frame *wh = data; - a_int32_t size = sizeof(struct ieee80211_frame); - a_int32_t is4addr = (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS; - a_int32_t is_qos = IEEE80211_QOS_HAS_SEQ(wh); - - /* NB: we don't handle control frames */ - adf_os_assert((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL); - if (is4addr) - size += IEEE80211_ADDR_LEN; - if (is_qos) - size += sizeof(a_uint16_t); - if (is4addr && is_qos) - size += sizeof(a_uint16_t); - return size; -} - /* * Like ieee80211_hdrsize, but handles any type of frame. */