[PATCH] mesh: Transmit the last Commit Message sent to the peer on the Commited State

Masashi Honma masashi.honma at gmail.com
Wed Apr 15 06:28:16 EDT 2015


Currently mesh state machine transmits updated Commit Message when received
a Confirm Message on Committed state. According to the spec, it should send
the latest Commit Message previously sent.

[1] 11.3.8.6.4 Protocol instance behavior - Committed state
"Upon receipt of a Con event, ... If Sync is not greater than dot11RSNASAESync,
the protocol instance shall increment Sync, transmit the last Commit Message
sent to the peer, and set the t0 (retransmission) timer."

[1] IEEE 802.11-2012

Signed-off-by: Masashi Honma <masashi.honma at gmail.com>
---
 src/ap/ieee802_11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 89911b1..7a4cc70 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -624,7 +624,7 @@ static int sae_sm_step(struct hostapd_data *hapd, struct sta_info *sta,
 				return WLAN_STATUS_SUCCESS;
 			sta->sae->sync++;
 
-			ret = auth_sae_send_commit(hapd, sta, bssid, 1);
+			ret = auth_sae_send_commit(hapd, sta, bssid, 0);
 			if (ret)
 				return ret;
 
-- 
1.9.1



More information about the HostAP mailing list