staging: rtl8723au: rtw_ieee80211.c mark a couple of function static
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 9 May 2014 13:03:08 +0000 (15:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:11:56 +0000 (13:11 -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 b56055eb433be2983790f23756b5f79b3c92185a..bffca4fe3b9c1c5fbbac91e183c0acdb2ab0a881 100644 (file)
@@ -76,7 +76,7 @@ int rtw_get_bit_value_from_ieee_value23a(u8 val)
        return 0;
 }
 
-uint rtw_is_cckrates_included23a(u8 *rate)
+static bool rtw_is_cckrates_included(u8 *rate)
 {
        u32 i = 0;
 
@@ -90,7 +90,7 @@ uint rtw_is_cckrates_included23a(u8 *rate)
        return false;
 }
 
-uint rtw_is_cckratesonly_included23a(u8 *rate)
+static bool rtw_is_cckratesonly_included(u8 *rate)
 {
        u32 i = 0;
 
@@ -108,14 +108,14 @@ uint rtw_is_cckratesonly_included23a(u8 *rate)
 int rtw_check_network_type23a(unsigned char *rate, int ratelen, int channel)
 {
        if (channel > 14) {
-               if ((rtw_is_cckrates_included23a(rate)) == true)
+               if (rtw_is_cckrates_included(rate))
                        return WIRELESS_INVALID;
                else
                        return WIRELESS_11A;
        } else {  /*  could be pure B, pure G, or B/G */
-               if ((rtw_is_cckratesonly_included23a(rate)) == true)
+               if (rtw_is_cckratesonly_included(rate))
                        return WIRELESS_11B;
-               else if ((rtw_is_cckrates_included23a(rate)) == true)
+               else if (rtw_is_cckrates_included(rate))
                        return  WIRELESS_11BG;
                else
                        return WIRELESS_11G;
index 76875f651d822655c8ebafe7972d26209e35b4dc..4a4b08682925a77767e62a63a9fbe35fa262465e 100644 (file)
@@ -447,10 +447,6 @@ int rtw_generate_ie23a(struct registry_priv *pregistrypriv);
 
 int rtw_get_bit_value_from_ieee_value23a(u8 val);
 
-uint rtw_is_cckrates_included23a(u8 *rate);
-
-uint rtw_is_cckratesonly_included23a(u8 *rate);
-
 int rtw_check_network_type23a(unsigned char *rate, int ratelen, int channel);
 
 void rtw_get_bcn_info23a(struct wlan_network *pnetwork);