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>
This commit is contained in:
parent
9a5cfd7007
commit
8b65fefeed
1 changed files with 2 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue