P2P: Fix invalid remain-on-channel duration for frame TX
cfg80211 does not allow the zero duration of remain-on-channel. Instead, use 20 ms as default waiting time when remain-on-channel is used to schedule offchannel transmission that does not expect a response. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
cbf41ca796
commit
a2ea8d64d1
1 changed files with 2 additions and 0 deletions
|
@ -285,6 +285,8 @@ int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq,
|
|||
"channel");
|
||||
if (wait_time > wpa_s->max_remain_on_chan)
|
||||
wait_time = wpa_s->max_remain_on_chan;
|
||||
else if (wait_time == 0)
|
||||
wait_time = 20;
|
||||
if (wpa_drv_remain_on_channel(wpa_s, freq, wait_time) < 0) {
|
||||
wpa_printf(MSG_DEBUG, "Off-channel: Failed to request driver "
|
||||
"to remain on channel (%u MHz) for Action "
|
||||
|
|
Loading…
Reference in a new issue