From: Marek Puzyniak Date: Tue, 13 Aug 2013 09:45:22 +0000 (+0200) Subject: ath10k: fix WEP in AP and IBSS mode X-Git-Tag: v3.13-rc1~105^2~225^2~78^2~19 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=68c8a9b22eeec0b57ba261eec5b642ec1cc5fa16;p=~emulex%2Finfiniband.git ath10k: fix WEP in AP and IBSS mode WEP encoding was not working properly for AP and IBSS mode. TX frames were encrypted with default WEP tx key index set always to zero, what sometimes was wrong when different key index should be used. This patch allows to update WEP key index also for AP and IBSS mode. Problem detected during automated WEP tests. Signed-off-by: Marek Puzyniak Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 9637a949acd..7eab8a429e7 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1418,10 +1418,6 @@ static void ath10k_tx_h_update_wep_key(struct sk_buff *skb) struct ieee80211_key_conf *key = info->control.hw_key; int ret; - /* TODO AP mode should be implemented */ - if (vif->type != NL80211_IFTYPE_STATION) - return; - if (!ieee80211_has_protected(hdr->frame_control)) return;