Silence a compiler warning in no-WEP and no-EAP builds
wep_keys_set was not used in wpas_start_assoc_cb() without IEEE8021X_EAPOL, so need to make this local variable conditional on build options. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d9aafb75f1
commit
852d370f65
1 changed files with 2 additions and 0 deletions
|
@ -3328,7 +3328,9 @@ static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit)
|
||||||
int use_crypt, ret, bssid_changed;
|
int use_crypt, ret, bssid_changed;
|
||||||
unsigned int cipher_pairwise, cipher_group, cipher_group_mgmt;
|
unsigned int cipher_pairwise, cipher_group, cipher_group_mgmt;
|
||||||
struct wpa_driver_associate_params params;
|
struct wpa_driver_associate_params params;
|
||||||
|
#if defined(CONFIG_WEP) || defined(IEEE8021X_EAPOL)
|
||||||
int wep_keys_set = 0;
|
int wep_keys_set = 0;
|
||||||
|
#endif /* CONFIG_WEP || IEEE8021X_EAPOL */
|
||||||
int assoc_failed = 0;
|
int assoc_failed = 0;
|
||||||
struct wpa_ssid *old_ssid;
|
struct wpa_ssid *old_ssid;
|
||||||
u8 prev_bssid[ETH_ALEN];
|
u8 prev_bssid[ETH_ALEN];
|
||||||
|
|
Loading…
Reference in a new issue