staging: rtl8723au: rtw_ieee80211.c: Remove a number of unused functions
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 21 May 2014 07:38:28 +0000 (09:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 07:27:51 +0000 (16:27 +0900)
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 28a7a0c81166291613de5c9dd6a8b8566b5dc694..85eac7d65a4a94b13872180b9e221c69beed2cf0 100644 (file)
@@ -159,18 +159,6 @@ inline u8 *rtw_set_ie23a_ch_switch (u8 *buf, u32 *buf_len, u8 ch_switch_mode,
        return rtw_set_ie23a(buf, WLAN_EID_CHANNEL_SWITCH,  3, ie_data, buf_len);
 }
 
-inline u8 secondary_ch_offset_to_hal_ch_offset23a(u8 ch_offset)
-{
-       if (ch_offset == SCN)
-               return HAL_PRIME_CHNL_OFFSET_DONT_CARE;
-       else if (ch_offset == SCA)
-               return HAL_PRIME_CHNL_OFFSET_UPPER;
-       else if (ch_offset == SCB)
-               return HAL_PRIME_CHNL_OFFSET_LOWER;
-
-       return HAL_PRIME_CHNL_OFFSET_DONT_CARE;
-}
-
 inline u8 hal_ch_offset_to_secondary_ch_offset23a(u8 ch_offset)
 {
        if (ch_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE)
@@ -190,19 +178,6 @@ inline u8 *rtw_set_ie23a_secondary_ch_offset(u8 *buf, u32 *buf_len,
                          1, &secondary_ch_offset, buf_len);
 }
 
-inline u8 *rtw_set_ie23a_mesh_ch_switch_parm(u8 *buf, u32 *buf_len, u8 ttl,
-                                         u8 flags, u16 reason, u16 precedence)
-{
-       u8 ie_data[6];
-
-       ie_data[0] = ttl;
-       ie_data[1] = flags;
-       put_unaligned_le16(reason, (u8*)&ie_data[2]);
-       put_unaligned_le16(precedence, (u8*)&ie_data[4]);
-
-       return rtw_set_ie23a(buf, 0x118,  6, ie_data, buf_len);
-}
-
 /*----------------------------------------------------------------------------
 index: the information element id index, limit is the limit for search
 -----------------------------------------------------------------------------*/
@@ -863,28 +838,6 @@ u8 *rtw_get_wps_attr_content23a(u8 *wps_ie, uint wps_ielen, u16 target_attr_id,
        return NULL;
 }
 
-static u8 key_char2num(u8 ch)
-{
-       if (ch >= '0' && ch <= '9')
-               return ch - '0';
-       else if (ch >= 'a' && ch <= 'f')
-               return ch - 'a' + 10;
-       else if (ch >= 'A' && ch <= 'F')
-               return ch - 'A' + 10;
-       else
-               return 0xff;
-}
-
-u8 str_2char2num23a(u8 hch, u8 lch)
-{
-       return key_char2num(hch) * 10 + key_char2num(lch);
-}
-
-u8 key_2char2num23a(u8 hch, u8 lch)
-{
-       return key_char2num(hch) << 4 | key_char2num(lch);
-}
-
 static int rtw_get_cipher_info(struct wlan_network *pnetwork)
 {
        const u8 *pbuf;
index ee600ab7d1c7f878321aedbd27b5b575ddd61963..2a9a3d2dbc0193b9b3cc3c0b09e66773704facf2 100644 (file)
@@ -425,11 +425,9 @@ enum secondary_ch_offset {
        SCA = 1, /* secondary channel above */
        SCB = 3,  /* secondary channel below */
 };
-u8 secondary_ch_offset_to_hal_ch_offset23a(u8 ch_offset);
 u8 hal_ch_offset_to_secondary_ch_offset23a(u8 ch_offset);
 u8 *rtw_set_ie23a_ch_switch(u8 *buf, u32 *buf_len, u8 ch_switch_mode, u8 new_ch, u8 ch_switch_cnt);
 u8 *rtw_set_ie23a_secondary_ch_offset(u8 *buf, u32 *buf_len, u8 secondary_ch_offset);
-u8 *rtw_set_ie23a_mesh_ch_switch_parm(u8 *buf, u32 *buf_len, u8 ttl, u8 flags, u16 reason, u16 precedence);
 
 u8 *rtw_get_ie23a(u8*pbuf, int index, int *len, int limit);
 u8 *rtw_get_ie23a_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen);