From 8b65fefeedd8a448d20e7951f98e9dfa9c8ec8c1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 26 Jul 2014 20:28:03 +0300 Subject: [PATCH] Interworking: Remove unnecessary placeholder for PAME-BI 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 --- wpa_supplicant/interworking.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index 45a8f69c0..19b6e38da 100644 --- a/wpa_supplicant/interworking.c +++ b/wpa_supplicant/interworking.c @@ -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 */