aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wnm_sta.c
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2016-02-15 14:53:37 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-22 17:53:04 (GMT)
commitc8082d2b6a3dde59bbc60f909a9dfd10431753b2 (patch)
tree15c93c7ee7078ffe9bc15ba19fab4a739640148d /wpa_supplicant/wnm_sta.c
parentdd5999084e3f1eb1330cf2f7cc284a417b6cf237 (diff)
downloadhostap-c8082d2b6a3dde59bbc60f909a9dfd10431753b2.zip
hostap-c8082d2b6a3dde59bbc60f909a9dfd10431753b2.tar.gz
hostap-c8082d2b6a3dde59bbc60f909a9dfd10431753b2.tar.bz2
MBO: Add MBO IE to BSS Transition Management Response frame
When rejecting a BSS Transition Management Request frame, add MBO IE to the BSS Transition Management Response frame to specify the transition rejection reason. Signed-off-by: David Spinadel <david.spinadel@intel.com> Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Diffstat (limited to 'wpa_supplicant/wnm_sta.c')
-rw-r--r--wpa_supplicant/wnm_sta.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
index 31411e3..e978a19 100644
--- a/wpa_supplicant/wnm_sta.c
+++ b/wpa_supplicant/wnm_sta.c
@@ -620,6 +620,14 @@ static void wnm_send_bss_transition_mgmt_resp(
pos += ETH_ALEN;
}
+#ifdef CONFIG_MBO
+ if (status != WNM_BSS_TM_ACCEPT) {
+ pos += wpas_mbo_ie_bss_trans_reject(
+ wpa_s, pos, buf + sizeof(buf) - pos,
+ MBO_TRANSITION_REJECT_REASON_UNSPECIFIED);
+ }
+#endif /* CONFIG_MBO */
+
len = pos - (u8 *) &mgmt->u.action.category;
res = wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, wpa_s->bssid,