diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 9dd72d8c78ec..33816091b439 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1782,6 +1782,11 @@ static int ath9k_sta_add(struct ieee80211_hw *hw, | |||
1782 | struct ieee80211_key_conf ps_key = { }; | 1782 | struct ieee80211_key_conf ps_key = { }; |
1783 | 1783 | ||
1784 | ath_node_attach(sc, sta); | 1784 | ath_node_attach(sc, sta); |
1785 | |||
1786 | if (vif->type != NL80211_IFTYPE_AP && | ||
1787 | vif->type != NL80211_IFTYPE_AP_VLAN) | ||
1788 | return 0; | ||
1789 | |||
1785 | an->ps_key = ath_key_config(common, vif, sta, &ps_key); | 1790 | an->ps_key = ath_key_config(common, vif, sta, &ps_key); |
1786 | 1791 | ||
1787 | return 0; | 1792 | return 0; |