diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2012-09-02 08:25:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-24 15:02:08 -0400 |
commit | e37b674156b9d5cd87025f0b4719d60e4ac6060c (patch) | |
tree | 749c6cfc0747e631540bbdc5fe50751b28d945cf /drivers | |
parent | 960334a7d33ecd54ba5337275dc4ea701d1dbf5e (diff) |
carl9170: connect to 11w protected networks
Previously, it was not possible to connect to
networks which requires 11w to be supported by
the stations.
While the documentation hints that there's some
hardware support for offloading MFP "decryption",
this simple implementation relies on the mac80211
stack to do the actual crypto operations.
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/mac.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/carl9170/main.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/carl9170/mac.c b/drivers/net/wireless/ath/carl9170/mac.c index f8676280dc36..e3b1b6e87760 100644 --- a/drivers/net/wireless/ath/carl9170/mac.c +++ b/drivers/net/wireless/ath/carl9170/mac.c | |||
@@ -304,7 +304,8 @@ int carl9170_set_operating_mode(struct ar9170 *ar) | |||
304 | struct ath_common *common = &ar->common; | 304 | struct ath_common *common = &ar->common; |
305 | u8 *mac_addr, *bssid; | 305 | u8 *mac_addr, *bssid; |
306 | u32 cam_mode = AR9170_MAC_CAM_DEFAULTS; | 306 | u32 cam_mode = AR9170_MAC_CAM_DEFAULTS; |
307 | u32 enc_mode = AR9170_MAC_ENCRYPTION_DEFAULTS; | 307 | u32 enc_mode = AR9170_MAC_ENCRYPTION_DEFAULTS | |
308 | AR9170_MAC_ENCRYPTION_MGMT_RX_SOFTWARE; | ||
308 | u32 rx_ctrl = AR9170_MAC_RX_CTRL_DEAGG | | 309 | u32 rx_ctrl = AR9170_MAC_RX_CTRL_DEAGG | |
309 | AR9170_MAC_RX_CTRL_SHORT_FILTER; | 310 | AR9170_MAC_RX_CTRL_SHORT_FILTER; |
310 | u32 sniffer = AR9170_MAC_SNIFFER_DEFAULTS; | 311 | u32 sniffer = AR9170_MAC_SNIFFER_DEFAULTS; |
diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index 18554ab76733..67997b39aba7 100644 --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c | |||
@@ -1149,6 +1149,7 @@ static int carl9170_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
1149 | break; | 1149 | break; |
1150 | case WLAN_CIPHER_SUITE_CCMP: | 1150 | case WLAN_CIPHER_SUITE_CCMP: |
1151 | ktype = AR9170_ENC_ALG_AESCCMP; | 1151 | ktype = AR9170_ENC_ALG_AESCCMP; |
1152 | key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX; | ||
1152 | break; | 1153 | break; |
1153 | default: | 1154 | default: |
1154 | return -EOPNOTSUPP; | 1155 | return -EOPNOTSUPP; |
@@ -1780,6 +1781,7 @@ void *carl9170_alloc(size_t priv_size) | |||
1780 | hw->wiphy->interface_modes = 0; | 1781 | hw->wiphy->interface_modes = 0; |
1781 | 1782 | ||
1782 | hw->flags |= IEEE80211_HW_RX_INCLUDES_FCS | | 1783 | hw->flags |= IEEE80211_HW_RX_INCLUDES_FCS | |
1784 | IEEE80211_HW_MFP_CAPABLE | | ||
1783 | IEEE80211_HW_REPORTS_TX_ACK_STATUS | | 1785 | IEEE80211_HW_REPORTS_TX_ACK_STATUS | |
1784 | IEEE80211_HW_SUPPORTS_PS | | 1786 | IEEE80211_HW_SUPPORTS_PS | |
1785 | IEEE80211_HW_PS_NULLFUNC_STACK | | 1787 | IEEE80211_HW_PS_NULLFUNC_STACK | |