nl80211: Disable Probe Request reporting for static AP during deinit

Disable Probe Request reporting for statically created AP interfaces
during de-initialization. We will enable it again while starting AP
operations.

Signed-off-by: Avinash Patil <avinashapatil@gmail.com>
This commit is contained in:
Avinash Patil 2014-08-05 12:50:53 +05:30 committed by Jouni Malinen
parent bf144cf649
commit b8d87ed296

View file

@ -10570,7 +10570,8 @@ static int wpa_driver_nl80211_probe_req_report(struct i802_bss *bss, int report)
if (!report) { if (!report) {
if (bss->nl_preq && drv->device_ap_sme && if (bss->nl_preq && drv->device_ap_sme &&
is_ap_interface(drv->nlmode) && !bss->in_deinit) { is_ap_interface(drv->nlmode) && !bss->in_deinit &&
!bss->static_ap) {
/* /*
* Do not disable Probe Request reporting that was * Do not disable Probe Request reporting that was
* enabled in nl80211_setup_ap(). * enabled in nl80211_setup_ap().