staging: rtl8723au: Remove last users of rtw_get_capability*() functions
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 19 Jun 2014 09:37:34 +0000 (11:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 20:08:51 +0000 (13:08 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_ap.c
drivers/staging/rtl8723au/core/rtw_mlme.c
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
drivers/staging/rtl8723au/core/rtw_wlan_util.c
drivers/staging/rtl8723au/include/rtw_mlme.h

index e943b6be6496fb1c54f28c04f37c67e1ab388743..2a960b1ba06664119d1078d8a55d97c27dffc72b 100644 (file)
@@ -773,7 +773,7 @@ static void start_bss_network(struct rtw_adapter *padapter, u8 *pbuf)
        update_wireless_mode23a(padapter);
 
        /* udpate capability after cur_wireless_mode updated */
-       update_capinfo23a(padapter, rtw_get_capability23a(pnetwork));
+       update_capinfo23a(padapter, pnetwork->capability);
 
        /* let pnetwork_mlmeext == pnetwork_mlme. */
        memcpy(pnetwork_mlmeext, pnetwork, pnetwork->Length);
index 2119dfb9bbabfbc978c41babc8944c3c5cc3b905..776068de545aaa37067adcd775e08bc20ba90f75 100644 (file)
@@ -312,20 +312,6 @@ void rtw23a_roaming(struct rtw_adapter *padapter,
        spin_unlock_bh(&pmlmepriv->lock);
 }
 
-__le16 *rtw_get_capability23a_from_ie(u8 *ie)
-{
-       return (__le16 *)(ie + 8 + 2);
-}
-
-u16 rtw_get_capability23a(struct wlan_bssid_ex *bss)
-{
-       u16 val;
-
-       memcpy(&val, rtw_get_capability23a_from_ie(bss->IEs), 2);
-
-       return le16_to_cpu(val);
-}
-
 __le16 *rtw_get_beacon_interval23a_from_ie(u8 *ie)
 {
        return (__le16 *)(ie + 8);
index f7ddd6a19026a5e702fddf5cd317dac6f4918a88..d058178e793fe654afd1b1fce5522dc929dff36c 100644 (file)
@@ -4417,7 +4417,7 @@ static void start_create_ibss(struct rtw_adapter* padapter)
        update_wireless_mode23a(padapter);
 
        /* udpate capability */
-       caps = rtw_get_capability23a(pnetwork);
+       caps = pnetwork->capability;
        update_capinfo23a(padapter, caps);
        if (caps & WLAN_CAPABILITY_IBSS) {      /* adhoc master */
                rtl8723a_set_sec_cfg(padapter, 0xcf);
@@ -4472,7 +4472,7 @@ static void start_clnt_join(struct rtw_adapter* padapter)
        update_wireless_mode23a(padapter);
 
        /* udpate capability */
-       caps = rtw_get_capability23a(pnetwork);
+       caps = pnetwork->capability;
        update_capinfo23a(padapter, caps);
        if (caps & WLAN_CAPABILITY_ESS) {
                /* switch channel */
index 5aaff130d55d719d5f5a2e2c1c30416dbdc7ec21..b07c13b2acee1b6053e8bcf06bd32955659b913d 100644 (file)
@@ -1083,7 +1083,7 @@ bool is_ap_in_tkip23a(struct rtw_adapter *padapter)
        bcn_fixed_size = offsetof(struct ieee80211_mgmt, u.beacon.variable) -
                offsetof(struct ieee80211_mgmt, u.beacon);
 
-       if (rtw_get_capability23a(cur_network) & WLAN_CAPABILITY_PRIVACY) {
+       if (cur_network->capability & WLAN_CAPABILITY_PRIVACY) {
                for (i = bcn_fixed_size; i < pmlmeinfo->network.IELength;) {
                        p = pmlmeinfo->network.IEs + i;
 
@@ -1118,7 +1118,7 @@ bool should_forbid_n_rate23a(struct rtw_adapter * padapter)
        bcn_fixed_size = offsetof(struct ieee80211_mgmt, u.beacon.variable) -
                offsetof(struct ieee80211_mgmt, u.beacon);
 
-       if (rtw_get_capability23a(cur_network) & WLAN_CAPABILITY_PRIVACY) {
+       if (cur_network->capability & WLAN_CAPABILITY_PRIVACY) {
                for (i = bcn_fixed_size; i < cur_network->IELength;) {
                        p = cur_network->IEs + i;
 
@@ -1161,7 +1161,7 @@ bool is_ap_in_wep23a(struct rtw_adapter *padapter)
        bcn_fixed_size = offsetof(struct ieee80211_mgmt, u.beacon.variable) -
                offsetof(struct ieee80211_mgmt, u.beacon);
 
-       if (rtw_get_capability23a(cur_network) & WLAN_CAPABILITY_PRIVACY) {
+       if (cur_network->capability & WLAN_CAPABILITY_PRIVACY) {
                for (i = bcn_fixed_size; i < pmlmeinfo->network.IELength;) {
                        p = pmlmeinfo->network.IEs + i;
 
index bc420ec6f4360fd774cd16d66fe7d40fa6d0d63c..039e697e1ecdbbfe8d1d98b5b44319b4fd261684 100644 (file)
@@ -310,7 +310,6 @@ static inline void clr_fwstate_ex(struct mlme_priv *pmlmepriv, int state)
        spin_unlock_bh(&pmlmepriv->lock);
 }
 
-u16 rtw_get_capability23a(struct wlan_bssid_ex *bss);
 void rtw_disconnect_hdl23a_under_linked(struct rtw_adapter *adapter,
                                     struct sta_info *psta, u8 free_assoc);
 void rtw_generate_random_ibss23a(u8 *pibss);
@@ -349,7 +348,6 @@ int rtw_if_up23a(struct rtw_adapter *padapter);
 
 int rtw_linked_check(struct rtw_adapter *padapter);
 
-__le16 *rtw_get_capability23a_from_ie(u8 *ie);
 __le16 *rtw_get_beacon_interval23a_from_ie(u8 *ie);