From: Jay Katabathuni Date: Tue, 25 Oct 2011 08:31:21 +0000 (+0300) Subject: Interworking: Fix Advertisement Protocol element length limit X-Git-Tag: hostap-1-bp~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d21e9dd5a5ae29681fa5095c1d79eff7f0ad546;p=thirdparty%2Fhostap.git 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. --- diff --git a/src/ap/ieee802_11_shared.c b/src/ap/ieee802_11_shared.c index 12a2a70ea..403856341 100644 --- a/src/ap/ieee802_11_shared.c +++ b/src/ap/ieee802_11_shared.c @@ -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 */