nl80211: Do not allow off channel when frequency is not specified
Do not allow offchannel operation for action frame transmission if no frequency is specified, as this doesn't make sense. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
bbb0d3a40e
commit
d8cae2d024
1 changed files with 3 additions and 0 deletions
|
@ -9151,6 +9151,9 @@ static int wpa_driver_nl80211_send_action(struct i802_bss *bss,
|
|||
bss->flink->beacon_set)
|
||||
offchanok = 0;
|
||||
|
||||
if (!freq && is_sta_interface(drv->nlmode))
|
||||
offchanok = 0;
|
||||
|
||||
wpa_printf(MSG_DEBUG, "nl80211: Send Action frame (ifindex=%d, "
|
||||
"freq=%u MHz wait=%d ms no_cck=%d offchanok=%d)",
|
||||
drv->ifindex, freq, wait_time, no_cck, offchanok);
|
||||
|
|
Loading…
Reference in a new issue