Interworking: Fix Advertisement Protocol element length limit

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.
This commit is contained in:
Jay Katabathuni 2011-10-25 11:31:21 +03:00 committed by Jouni Malinen
parent c9aab27406
commit 1d21e9dd5a

View file

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