aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-05-11 18:24:31 +0300
committerJouni Malinen <j@w1.fi>2012-05-11 18:24:31 +0300
commitb5671498bf023f8627dd99248f900056114eabaa (patch)
tree98e45bc34d75c84caf06f815f67123e15a9d8922 /src/drivers
parent2e3e4566234731574715e0d7c0f42f4e371d00ed (diff)
downloadexternal_wpa_supplicant_8_ti-b5671498bf023f8627dd99248f900056114eabaa.zip
external_wpa_supplicant_8_ti-b5671498bf023f8627dd99248f900056114eabaa.tar.gz
external_wpa_supplicant_8_ti-b5671498bf023f8627dd99248f900056114eabaa.tar.bz2
nl80211: Use wait_time with AP mode driver SME for offchannel
When sending an offchannel frame (mainly, P2P Invitation Request), the wait_time parameter was hardcoded to 0 for drivers that implement AP mode SME. This is not correct and can cause problems for drivers that support offloading of off-channel operations with driver/firmware based AP SME. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/driver_nl80211.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 15f0407..693a885 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5217,7 +5217,9 @@ static int wpa_driver_nl80211_send_mlme_freq(struct i802_bss *bss,
if (drv->device_ap_sme && is_ap_interface(drv->nlmode)) {
if (freq == 0)
freq = bss->freq;
- return nl80211_send_frame_cmd(bss, freq, 0,
+ return nl80211_send_frame_cmd(bss, freq,
+ (int) freq == bss->freq ? 0 :
+ wait_time,
data, data_len,
&drv->send_action_cookie,
no_cck, noack, offchanok);