On Wed, 2010-08-11 at 13:51 +0200, Oikarinen Juuso (Nokia-MS/Tampere) wrote: > On Tue, 2010-08-10 at 09:46 +0200, ext Johannes Berg wrote: > > From: Johannes Berg <johannes.berg@xxxxxxxxx> > > > > The decryption code verifies whether or not > > a given frame was decrypted and verified by > > hardware. This is unnecessary, as the crypto > > RX handler already does it long before the > > decryption code is even invoked, so remove > > that code to avoid confusion. > > > > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> > > --- > > net/mac80211/wpa.c | 26 ++++++-------------------- > > 1 file changed, 6 insertions(+), 20 deletions(-) > > > > This patch for some reason seems to break wl1271 WPA - association > succeeds but encrypted data transfer fails. > > I still don't know why, but I'm looking into it. > It appears, that in function ieee80211_rx_h_decrypt we go here: if (!is_multicast_ether_addr(hdr->addr1) && stakey) { rx->key = stakey; /* Skip decryption if the frame is not protected. */ if (!ieee80211_has_protected(hdr->frame_control)) return RX_CONTINUE; And here, as the frame is protected, we go out of the if, and end up in tkip_decrypt, which with this patch no longer checks whether the frame is already decrypted. The frame then ends up dropped. > -Juuso > > -- > 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 -- 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