diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2012-12-17 11:05:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-07 15:16:52 -0500 |
commit | 55fa645e3a3f4c0b5da744eb0e1fec4e51dfc75e (patch) | |
tree | fe6c9d5de1e1632578f32adba71acd830a729039 | |
parent | 7a5c7307736cdc26146581aed24cc46a4c7e6f35 (diff) |
carl9170: disable hw crypto for p2p networks
While the driver supports HW offload in a single
P2P client configuration, it doesn't support HW
offload in the concurrent P2P GO+CLIENT
configuration.
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/carl9170/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index 6ca5dd068275..0abf005aaa4e 100644 --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c | |||
@@ -583,6 +583,14 @@ static int carl9170_init_interface(struct ar9170 *ar, | |||
583 | ar->disable_offload |= ((vif->type != NL80211_IFTYPE_STATION) && | 583 | ar->disable_offload |= ((vif->type != NL80211_IFTYPE_STATION) && |
584 | (vif->type != NL80211_IFTYPE_AP)); | 584 | (vif->type != NL80211_IFTYPE_AP)); |
585 | 585 | ||
586 | /* While the driver supports HW offload in a single | ||
587 | * P2P client configuration, it doesn't support HW | ||
588 | * offload in the favourit, concurrent P2P GO+CLIENT | ||
589 | * configuration. Hence, HW offload will always be | ||
590 | * disabled for P2P. | ||
591 | */ | ||
592 | ar->disable_offload |= vif->p2p; | ||
593 | |||
586 | ar->rx_software_decryption = ar->disable_offload; | 594 | ar->rx_software_decryption = ar->disable_offload; |
587 | 595 | ||
588 | err = carl9170_set_operating_mode(ar); | 596 | err = carl9170_set_operating_mode(ar); |