From 1d21e9dd5a5ae29681fa5095c1d79eff7f0ad546 Mon Sep 17 00:00:00 2001 From: Jay Katabathuni Date: Tue, 25 Oct 2011 11:31:21 +0300 Subject: [PATCH] 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. --- src/ap/ieee802_11_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */