IBSS RSN: Fix disconnect() with internal SME
Commit 1aef400bf0
implemented IBSS RSN
disconnect() call using sta_deauth() in a way that resulted in NULL
pointer dereference in driver_nl80211.c if SME was in user space. Fix
this by passing the own MAC address in the sta_deauth call.
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ed07764699
commit
ec384c566a
1 changed files with 2 additions and 1 deletions
|
@ -133,7 +133,8 @@ static inline int wpa_drv_sta_deauth(struct wpa_supplicant *wpa_s,
|
|||
const u8 *addr, int reason_code)
|
||||
{
|
||||
if (wpa_s->driver->sta_deauth) {
|
||||
return wpa_s->driver->sta_deauth(wpa_s->drv_priv, NULL, addr,
|
||||
return wpa_s->driver->sta_deauth(wpa_s->drv_priv,
|
||||
wpa_s->own_addr, addr,
|
||||
reason_code);
|
||||
}
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue