mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
clear/reclaim challenge text when switching auth mode and operating as an ap
Obtained from: Atheros
This commit is contained in:
parent
dbbc0c8312
commit
f3b179a4b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166481
@ -873,6 +873,15 @@ ieee80211_auth_open(struct ieee80211com *ic, struct ieee80211_frame *wh,
|
||||
"bad sta auth mode %u", ni->ni_authmode);
|
||||
ic->ic_stats.is_rx_bad_auth++; /* XXX */
|
||||
if (ic->ic_opmode == IEEE80211_M_HOSTAP) {
|
||||
/*
|
||||
* Clear any challenge text that may be there if
|
||||
* a previous shared key auth failed and then an
|
||||
* open auth is attempted.
|
||||
*/
|
||||
if (ni->ni_challenge != NULL) {
|
||||
FREE(ni->ni_challenge, M_DEVBUF);
|
||||
ni->ni_challenge = NULL;
|
||||
}
|
||||
/* XXX hack to workaround calling convention */
|
||||
ieee80211_send_error(ic, ni, wh->i_addr2,
|
||||
IEEE80211_FC0_SUBTYPE_AUTH,
|
||||
|
Loading…
Reference in New Issue
Block a user