]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix HT40 co-ex scanning issue on hostapd error path
authorJouni Malinen <j@w1.fi>
Sat, 7 Feb 2015 11:02:19 +0000 (13:02 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 7 Feb 2015 13:37:13 +0000 (15:37 +0200)
commit4fada1215d13a4bff171d0348fc106cefa215082
tree766e6de6dc7e12a017d341d159db53646a8fbb34
parent23ed011bea8e87fe662f888759f4d1e6b1e8d99d
Fix HT40 co-ex scanning issue on hostapd error path

If HT40 co-ex scan fails due to the driver rejecting scan triggers
multiple times, it was possible for the ap_ht40_scan_retry() timeout
being left behind and it getting run after hapd->drv_priv has been
cleared. This would result in NULL pointer dereference in
driver_nl80211_scan.c. Fix this by canceling the timeout when disabling
the interface.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/hostapd.c