IEEE80211_OFDM_RATE_24MB | IEEE80211_BASIC_RATE_MASK
 };
 
-bool cckrates_included(unsigned char *rate, int ratelen)
-{
-       int i;
-
-       for (i = 0; i < ratelen; i++) {
-               u8 r = rate[i] & 0x7f;
-
-               if (r == 2 || r == 4 || r == 11 || r == 22)
-                       return true;
-       }
-       return false;
-}
-
-bool cckratesonly_included(unsigned char *rate, int ratelen)
-{
-       int i;
-
-       for (i = 0; i < ratelen; i++) {
-               u8 r = rate[i] & 0x7f;
-
-               if (r != 2 && r != 4 && r != 11 && r != 22)
-                       return false;
-       }
-       return true;
-}
-
 unsigned char networktype_to_raid(unsigned char network_type)
 {
        switch (network_type) {
        if (pmlmeinfo->HT_enable)
                network_type = WIRELESS_11_24N;
 
-       if (cckratesonly_included(rate, ratelen))
+       if (rtw_is_cckratesonly_included(rate))
                network_type |= WIRELESS_11B;
-       else if (cckrates_included(rate, ratelen))
+       else if (rtw_is_cckrates_included(rate))
                network_type |= WIRELESS_11BG;
        else
                network_type |= WIRELESS_11G;
        if (pmlmeinfo->HT_enable)
                network_type = WIRELESS_11_24N;
 
-       if (cckratesonly_included(rate, ratelen))
+       if (rtw_is_cckratesonly_included(rate))
                network_type |= WIRELESS_11B;
-       else if (cckrates_included(rate, ratelen))
+       else if (rtw_is_cckrates_included(rate))
                network_type |= WIRELESS_11BG;
        else
                network_type |= WIRELESS_11G;
 
        mod_timer(&mlmeext->link_timer, jiffies +       \
                  msecs_to_jiffies(ms))
 
-bool cckrates_included(unsigned char *rate, int ratelen);
-bool cckratesonly_included(unsigned char *rate, int ratelen);
-
 void process_addba_req(struct adapter *padapter, u8 *paddba_req, u8 *addr);
 
 void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len);