WPA_NONE has no support to avoid CCMP replays and therefore we have to disable it in this situation to allow rejoining stations. Signed-off-by: Sven Eckelmann <sven@xxxxxxxxxxxxx> --- net/mac80211/wpa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/mac80211/wpa.c b/net/mac80211/wpa.c index c175ee8..f961d9a 100644 --- a/net/mac80211/wpa.c +++ b/net/mac80211/wpa.c @@ -517,7 +517,9 @@ ieee80211_crypto_ccmp_decrypt(struct ieee80211_rx_data *rx) queue = rx->security_idx; - if (memcmp(pn, key->u.ccmp.rx_pn[queue], CCMP_PN_LEN) <= 0) { + if (memcmp(pn, key->u.ccmp.rx_pn[queue], CCMP_PN_LEN) <= 0 && + (rx->sdata->vif.type != NL80211_IFTYPE_ADHOC || + rx->sdata->u.ibss.control_port)) { key->u.ccmp.replays++; return RX_DROP_UNUSABLE; } -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html