fix compile warnings for gcc 6.2.0
[open-ath9k-htc-firmware.git] / target_firmware / wlan / ieee80211_var.h
index 572d812e806b9df2c7a8616ffe87050485cc8706..fb7423e51ce05ec1750a6a5dbb211b55179b8710 100755 (executable)
@@ -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.
  */
@@ -241,4 +219,9 @@ ieee80211_anyhdrsize(const void *data)
                return ieee80211_hdrsize(data);
 }
 
+a_status_t
+ieee80211_tgt_crypto_encap(struct ieee80211_frame *wh,
+                          struct ieee80211_node_target *ni,
+                          a_uint8_t keytype);
+
 #endif