1 From 48f31256ffebfc43d6b14b93597aa2c7e2975dc4 Mon Sep 17 00:00:00 2001
2 From: Peter Oh <peter.oh@bowerswilkins.com>
3 Date: Tue, 17 Apr 2018 21:55:12 -0700
4 Subject: [PATCH 15/16] mesh: do not use offchan mgmt tx on DFS
6 Drivers don't allow mesh to use offchannel on management Tx.
8 Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
10 src/drivers/driver_nl80211.c | 5 ++++-
11 1 file changed, 4 insertions(+), 1 deletion(-)
13 --- a/src/drivers/driver_nl80211.c
14 +++ b/src/drivers/driver_nl80211.c
15 @@ -7165,6 +7165,10 @@ static int wpa_driver_nl80211_send_actio
16 struct wpa_driver_nl80211_data *drv = bss->drv;
20 + u16 num_modes, flags;
21 + struct hostapd_hw_modes *modes;
23 struct ieee80211_hdr *hdr;
25 wpa_printf(MSG_DEBUG, "nl80211: Send Action frame (ifindex=%d, "
26 @@ -7190,6 +7194,12 @@ static int wpa_driver_nl80211_send_actio
27 os_memset(bss->rand_addr, 0, ETH_ALEN);
30 + if (is_mesh_interface(drv->nlmode) &&
31 + (modes = nl80211_get_hw_feature_data(bss, &num_modes, &flags,
33 + ieee80211_is_dfs(freq, modes, num_modes))
36 if (is_ap_interface(drv->nlmode) &&
37 (!(drv->capa.flags & WPA_DRIVER_FLAGS_OFFCHANNEL_TX) ||
38 (int) freq == bss->freq || drv->device_ap_sme ||
39 @@ -7201,7 +7211,7 @@ static int wpa_driver_nl80211_send_actio
40 ret = nl80211_send_frame_cmd(bss, freq, wait_time, buf,
42 &drv->send_action_cookie,
43 - no_cck, 0, 1, NULL, 0);
44 + no_cck, 0, offchanok, NULL, 0);