aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-12 18:45:31 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-12 18:45:31 (GMT)
commit0629eeb4904d4b66ce911cc7127aead1013ddf67 (patch)
tree7be3ad8f930437dfd28bb4017fafc6ef9589ce97 /src/ap/ieee802_11.c
parent357edd386f4eae144f650e12b4a251e9f20b18c5 (diff)
downloadhostap-0629eeb4904d4b66ce911cc7127aead1013ddf67.zip
hostap-0629eeb4904d4b66ce911cc7127aead1013ddf67.tar.gz
hostap-0629eeb4904d4b66ce911cc7127aead1013ddf67.tar.bz2
RRM: Add AP mode minimal advertisement support for testing
The new hostapd.conf radio_measurements parameter can now be used to configure a test build to advertise support for radio measurements with neighbor report enabled. There is no real functionality that would actually process the request, i.e., this only for the purpose of minimal STA side testing for now. Signed-off-by: Jouni Malinen <j@w1.fi>
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 1dbd996..8a51b33 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -199,6 +199,9 @@ u16 hostapd_own_capab_info(struct hostapd_data *hapd, struct sta_info *sta,
(hapd->iconf->spectrum_mgmt_required || dfs))
capab |= WLAN_CAPABILITY_SPECTRUM_MGMT;
+ if (hapd->conf->radio_measurements)
+ capab |= IEEE80211_CAP_RRM;
+
return capab;
}