WPA supplicant in adhoc mode
LAMBA Jaideep
Jaideep.Lamba
Mon Dec 21 12:44:34 PST 2009
I am running into the MLME-REPLAYFAILURE issues with wpa_supplicant in
adhoc mode with madwifi drivers.
My configuration file looks like
#IBSS/ad-hoc network with WPA-NONE/TKIP
ctrl_interface=/var/run/wpa_supplicant
ap_scan=2
network={
ssid="AODV_TEST"
# scan_ssid=1
mode=1
# auth_alg=OPEN
frequency=2412
proto=WPA
key_mgmt=WPA-NONE
pairwise=CCMP
group=CCMP
psk="testing123"
}
Test scenario: Start wpa_supplicant on A (hosts) and node B (hosts).
Test the communication between A and B. Now disconnect B for 5 mins and
restart wpa_supplicant on B. And you will start seeing
WEXT: Custom wireless event: 'MLME-REPLAYFAILURE.indication(keyid=0
unicast addr=00:15:6d:64:ec:cd)'
Ignore event for foreign ifindex 25
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
Wireless event: cmd=0x8c02 len=85
This goes on for some time and then the two devices can talk together.
This event is getting generated in ccmp_decap function. After adding the
following printf statement
if (pn && pn <= k->wk_keyrsc[tid]) {
/*
* Replay violation.
*/
IEEE80211_DPRINTF(ctx->cc_vap, IEEE80211_MSG_CRYPTO,"%s: pn=%d
tid=%d, QOS_HAS_SEQ=%s keysrc = %d \n",
__func__, pn,tid,IEEE80211_QOS_HAS_SEQ(wh) ? "TRUE" :
"FALSE",k->wk_keyrsc[tid]);
ieee80211_notify_replay_failure(vap, wh, k, pn);
vap->iv_stats.is_rx_ccmpreplay++;
return 0;
}
I get the following log messages.
wifi0/ath0[00:15:6d:64:ec:c0]: ccmp_decap: pn=45 tid=0,
QOS_HAS_SEQ=FALSE keysrc = 372
wifi0/ath0[00:15:6d:64:ec:c0]: 00:15:6d:64:ec:d6 AES-CCM replay detected
<keyix 0, rsc 45 >
Can somebody please point me to what am I missing here.
Thanks,
Jaideep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20091221/bd19d1a2/attachment.htm
More information about the Hostap
mailing list