]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Do not look for supported rates in DMG/IEEE 802.11ad
authorDedy Lansky <qca_dlansky@qca.qualcomm.com>
Tue, 20 Dec 2016 15:04:43 +0000 (17:04 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 5 Jan 2017 15:05:00 +0000 (17:05 +0200)
Supported Rates element is not present in DMG/IEEE 802.11ad frames. Make
copy_supp_rates() immediately return with success if hardware mode is
IEEE 802.11ad.

Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
src/ap/ieee802_11.c

index f7cd0eae892ec2fbfb7e9bd4ffb09893d95ef7ad..af002be07054a8966a4fc9ddfd8cfb2249764dbd 100644 (file)
@@ -1789,6 +1789,11 @@ static u16 check_wmm(struct hostapd_data *hapd, struct sta_info *sta,
 static u16 copy_supp_rates(struct hostapd_data *hapd, struct sta_info *sta,
                           struct ieee802_11_elems *elems)
 {
+       /* Supported rates not used in IEEE 802.11ad/DMG */
+       if (hapd->iface->current_mode &&
+           hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211AD)
+               return WLAN_STATUS_SUCCESS;
+
        if (!elems->supp_rates) {
                hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
                               HOSTAPD_LEVEL_DEBUG,