aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11.c
diff options
context:
space:
mode:
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>2015-09-08 09:46:20 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-03 17:30:40 (GMT)
commit98b05081215dee5628d6568179899c3c20fb105e (patch)
tree648e0f5c1130401d510122375c44d2451a4c27bc /src/ap/ieee802_11.c
parent3bafb0d842a9c5b07f66eda43a100a8af1fd0bba (diff)
downloadhostap-98b05081215dee5628d6568179899c3c20fb105e.zip
hostap-98b05081215dee5628d6568179899c3c20fb105e.tar.gz
hostap-98b05081215dee5628d6568179899c3c20fb105e.tar.bz2
P2P: Implement P2P_GO_FREQ_MOVE_SCM_ECSA policy
Add new GO frequency move policy. The P2P_GO_FREQ_MOVE_SCM_ECSA prefers SCM if all the clients advertise eCSA support and the candidate frequency is one of the group common frequencies. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Diffstat (limited to 'src/ap/ieee802_11.c')
-rw-r--r--src/ap/ieee802_11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 7bb18c0..43d405d 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -1327,6 +1327,9 @@ static u16 check_ext_capab(struct hostapd_data *hapd, struct sta_info *sta,
}
#endif /* CONFIG_INTERWORKING */
+ if (ext_capab_ie_len > 0)
+ sta->ecsa_supported = !!(ext_capab_ie[0] & BIT(2));
+
return WLAN_STATUS_SUCCESS;
}