aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-07-26 17:28:03 (GMT)
committerJouni Malinen <j@w1.fi>2014-07-26 17:28:03 (GMT)
commit8b65fefeedd8a448d20e7951f98e9dfa9c8ec8c1 (patch)
tree5c76cc7469fa508d3e2d3425ead7f59dad5afc86 /wpa_supplicant/interworking.c
parent9a5cfd7007441dd2976ebfc9cee42cdbb2941a3c (diff)
downloadhostap-8b65fefeedd8a448d20e7951f98e9dfa9c8ec8c1.zip
hostap-8b65fefeedd8a448d20e7951f98e9dfa9c8ec8c1.tar.gz
hostap-8b65fefeedd8a448d20e7951f98e9dfa9c8ec8c1.tar.bz2
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 <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 45a8f69..19b6e38 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 */