]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - build-utilities/hostap.git/commitdiff
Interworking: Fix Advertisement Protocol element length limit
authorJay Katabathuni <jkatabat@qca.qualcomm.com>
Tue, 25 Oct 2011 08:31:21 +0000 (11:31 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 25 Oct 2011 08:31:21 +0000 (11:31 +0300)
The Query Response Length Limit is not allowed to be zero when
this is sent by the AP. Use 0x7F to indicate that the limit is
based on maximum number of GAS fragments.

src/ap/ieee802_11_shared.c

index 12a2a70ea2876f9025121365b2b28bfed9bff78f..403856341dd8d8a701d1c39cb16eb0b3faf286df 100644 (file)
@@ -259,7 +259,7 @@ u8 * hostapd_eid_adv_proto(struct hostapd_data *hapd, u8 *eid)
 
        *pos++ = WLAN_EID_ADV_PROTO;
        *pos++ = 2;
-       *pos++ = 0; /* Query Response Length Limit | PAME-BI */
+       *pos++ = 0x7F; /* Query Response Length Limit | PAME-BI */
        *pos++ = ACCESS_NETWORK_QUERY_PROTOCOL;
 #endif /* CONFIG_INTERWORKING */