staging: rtl8723au: Remove unused for_each_ie() and dump_ies23a()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 15 Apr 2014 17:44:10 +0000 (19:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2014 18:04:02 +0000 (11:04 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_ieee80211.c
drivers/staging/rtl8723au/include/ieee80211.h

index a28b816..930a9b1 100644 (file)
@@ -1164,21 +1164,6 @@ void rtw_macaddr_cfg23a(u8 *mac_addr)
                  MAC_ARG(mac_addr));
 }
 
-void dump_ies23a(u8 *buf, u32 buf_len) {
-       u8* pos = (u8*)buf;
-       u8 id, len;
-
-       while (pos-buf <= buf_len) {
-               id = *pos;
-               len = *(pos + 1);
-
-               DBG_8723A("%s ID:%u, LEN:%u\n", __func__, id, len);
-               dump_wps_ie23a(pos, len);
-
-               pos += (2 + len);
-       }
-}
-
 void dump_wps_ie23a(u8 *ie, u32 ie_len) {
        u8* pos = (u8*)ie;
        u16 id;
index e111738..bfa7e2d 100644 (file)
@@ -549,16 +549,6 @@ u8 *rtw_get_wps_ie23a(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen);
 u8 *rtw_get_wps_attr23a(u8 *wps_ie, uint wps_ielen, u16 target_attr_id ,u8 *buf_attr, u32 *len_attr);
 u8 *rtw_get_wps_attr_content23a(u8 *wps_ie, uint wps_ielen, u16 target_attr_id ,u8 *buf_content, uint *len_content);
 
-/**
- * for_each_ie - iterate over continuous IEs
- * @ie:
- * @buf:
- * @buf_len:
- */
-#define for_each_ie(ie, buf, buf_len) \
-       for (ie = (void*)buf; (((u8*)ie) - ((u8*)buf) + 1) < buf_len; ie = (void*)(((u8*)ie) + *(((u8*)ie)+1) + 2))
-
-void dump_ies23a(u8 *buf, u32 buf_len);
 void dump_wps_ie23a(u8 *ie, u32 ie_len);
 
 uint   rtw_get_rateset_len23a(u8       *rateset);