]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Enable Beacon Report using beacon table for all drivers
authorJouni Malinen <j@w1.fi>
Sun, 1 Jan 2017 22:27:58 +0000 (00:27 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 3 Jan 2017 14:02:56 +0000 (16:02 +0200)
The special parameters for beacon report scan are not needed for the
beacon report when using the beacon table measurement mode. Advertise
support for this case regardless of whether the driver supports the scan
parameters.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/rrm.c
wpa_supplicant/sme.c

index dfa042230ad7805e26713f7454ed66e763617e70..12a3a925cb439042ecfccadd0d044ffa7c746b63 100644 (file)
@@ -1030,11 +1030,13 @@ wpas_rm_handle_beacon_req(struct wpa_supplicant *wpa_s,
        u32 _rand;
        int ret = 0, res;
 
-       if (!(wpa_s->drv_rrm_flags & WPA_DRIVER_FLAGS_SUPPORT_BEACON_REPORT))
-               return 0;
-
        if (len < sizeof(*req))
                return -1;
+
+       if (req->mode != BEACON_REPORT_MODE_TABLE &&
+           !(wpa_s->drv_rrm_flags & WPA_DRIVER_FLAGS_SUPPORT_BEACON_REPORT))
+               return 0;
+
        subelems = req->variable;
        elems_len = len - sizeof(*req);
        rand_interval = le_to_host16(req->rand_interval);
index ce116f6401ca153491f1cd00e7af5bbacea8b430..18b1165d57082452dd920adef3f2e54cf4eb8a4d 100644 (file)
@@ -189,8 +189,8 @@ static void sme_auth_handle_rrm(struct wpa_supplicant *wpa_s,
 
        if (wpa_s->drv_rrm_flags & WPA_DRIVER_FLAGS_SUPPORT_BEACON_REPORT)
                *pos |= WLAN_RRM_CAPS_BEACON_REPORT_PASSIVE |
-                       WLAN_RRM_CAPS_BEACON_REPORT_ACTIVE |
-                       WLAN_RRM_CAPS_BEACON_REPORT_TABLE;
+                       WLAN_RRM_CAPS_BEACON_REPORT_ACTIVE;
+       *pos |= WLAN_RRM_CAPS_BEACON_REPORT_TABLE;
 
        if (wpa_s->lci)
                pos[1] |= WLAN_RRM_CAPS_LCI_MEASUREMENT;