mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 17:35:36 -04:00
staging: rtl8723au: Quiet unused variable warning when building with CONFIG_8723AU_AP_MODE=n
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
073c9d47c3
commit
da23732c63
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user