From 3ca0503a0753bf5b7e874bffc1c490c32fd06269 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Sat, 11 May 2013 18:06:21 +0200 Subject: [PATCH] remove ieee80211_hdrsize_padding Signed-off-by: Oleksij Rempel --- target_firmware/wlan/ieee80211_var.h | 22 ---------------------- 1 file changed, 22 deletions(-) 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. */ -- 2.25.1