staging: rtl8723au: Quiet unused variable warning when building with CONFIG_8723AU_AP...
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 9 Jun 2014 13:17:06 +0000 (15:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:07:30 +0000 (14:07 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme_ext.c

index 59047ad89b31786d7aa5e93344f36d5e831983c9..0d52699453234ea79067147fe42933cf1e4ed9ae 100644 (file)
@@ -2931,7 +2931,6 @@ static void issue_auth(struct rtw_adapter *padapter, struct sta_info *psta,
        unsigned char *pframe;
        struct ieee80211_mgmt *mgmt;
        unsigned int val32;
-       unsigned short val16;
        u16 auth_algo;
        int use_shared_key = 0;
        struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
@@ -2960,6 +2959,7 @@ static void issue_auth(struct rtw_adapter *padapter, struct sta_info *psta,
 
        if (psta) { /*  for AP mode */
 #ifdef CONFIG_8723AU_AP_MODE
+               unsigned short val16;
                ether_addr_copy(mgmt->da, psta->hwaddr);
                ether_addr_copy(mgmt->sa, myid(&padapter->eeprompriv));
                ether_addr_copy(mgmt->bssid, myid(&padapter->eeprompriv));