For drivers that do no hardware encryption/decryption, WEP encryption works as long as IEEE80211_HW_INCLUDE_IV is not set in the flags variable. With WPA encryption and IEEE80211_HW_INCLUDE_IV not set, the logs are full of TKIP decrypt failure messages. Despite the messages, RX is working. This patch turns off the message for this case. Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx> --- John, Your suggestion to net_ratelimit the output is a good one. I hope the 3rd time is a charm. I cannot believe that I'm still getting & and && confused. At least I'm now getting = and == right (most of the time). FORTRAN IV didn't have these complications!! Larry wpa.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) Index: wireless-legacy/net/mac80211/wpa.c =================================================================== --- wireless-legacy.orig/net/mac80211/wpa.c +++ wireless-legacy/net/mac80211/wpa.c @@ -516,9 +516,12 @@ ieee80211_rx_h_tkip_decrypt(struct ieee8 skb->len - hdrlen, rx->sta->addr, hwaccel, rx->u.rx.queue); if (res != TKIP_DECRYPT_OK || wpa_test) { - printk(KERN_DEBUG "%s: TKIP decrypt failed for RX frame from " - MAC_FMT " (res=%d)\n", - rx->dev->name, MAC_ARG(rx->sta->addr), res); + if ((rx->local->hw.flags & IEEE80211_HW_WEP_INCLUDE_IV) + && net_ratelimit()) { + printk(KERN_DEBUG "%s: TKIP decrypt failed for RX frame from " + MAC_FMT " (res=%d)\n", + rx->dev->name, MAC_ARG(rx->sta->addr), res); + } return TXRX_DROP; } - 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