]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Remove unnecessary placeholder for PAME-BI
authorJouni Malinen <j@w1.fi>
Sat, 26 Jul 2014 17:28:03 +0000 (20:28 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 26 Jul 2014 17:28:03 +0000 (20:28 +0300)
The PAME-BI bit in the Advertisement Protocol element is reserved for
non-AP STA, so this function will never set that bit to one and as such,
there is not much point in maintaining the placeholder dead code for
this either. (CID 68107)

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

index 45a8f69c0de6c1c5a1c5e7cd618ee740e10760c7..19b6e38da552dc327188ff8729cf73f94a519f20 100644 (file)
@@ -2901,7 +2901,7 @@ int gas_send_request(struct wpa_supplicant *wpa_s, const u8 *dst,
        struct wpa_bss *bss;
        int res;
        size_t len;
-       u8 query_resp_len_limit = 0, pame_bi = 0;
+       u8 query_resp_len_limit = 0;
 
        freq = wpa_s->assoc_freq;
        bss = wpa_bss_get_bssid(wpa_s, dst);
@@ -2925,8 +2925,7 @@ int gas_send_request(struct wpa_supplicant *wpa_s, const u8 *dst,
        /* Advertisement Protocol IE */
        wpabuf_put_u8(buf, WLAN_EID_ADV_PROTO);
        wpabuf_put_u8(buf, 1 + wpabuf_len(adv_proto)); /* Length */
-       wpabuf_put_u8(buf, (query_resp_len_limit & 0x7f) |
-                     (pame_bi ? 0x80 : 0));
+       wpabuf_put_u8(buf, query_resp_len_limit & 0x7f);
        wpabuf_put_buf(buf, adv_proto);
 
        /* GAS Query */