Skip to contentSkip to conversation

mwl8k: Enable hw encryption for STA mode on AP fw

PATCH New Yogesh Ashok Powar 1 participant 1 message Jan 25, 2013 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 4/7 mwl8k: Enable hw encryption for STA mode on AP fw

Firmware supports hardware encryption feature
for the station interface running on AP
firmware.

---
 drivers/net/wireless/mwl8k.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/mwl8k.c +2 -1
index 3515337..a83f3ca 100644
@@ -4265,8 +4265,9 @@ static int mwl8k_set_key(struct ieee80211_hw *hw,
 	u8 encr_type;
 	u8 *addr;
 	struct mwl8k_vif *mwl8k_vif = MWL8K_VIF(vif);
+	struct mwl8k_priv *priv = hw->priv;
 
-	if (vif->type == NL80211_IFTYPE_STATION)
+	if (vif->type == NL80211_IFTYPE_STATION && !priv->ap_fw)
 		return -EOPNOTSUPP;
 
 	if (sta == NULL)
Signature · 1 line
1.8.0.3