]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
carl9170: disable hw crypto for p2p networks
authorChristian Lamparter <chunkeey@googlemail.com>
Mon, 17 Dec 2012 16:05:55 +0000 (17:05 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jan 2013 20:16:52 +0000 (15:16 -0500)
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>
drivers/net/wireless/ath/carl9170/main.c

index 6ca5dd068275369b5a2a06ae88ec2f1fa6a6b662..0abf005aaa4e92ef6c47cd130c62edecf92a1c3b 100644 (file)
@@ -583,6 +583,14 @@ static int carl9170_init_interface(struct ar9170 *ar,
        ar->disable_offload |= ((vif->type != NL80211_IFTYPE_STATION) &&
            (vif->type != NL80211_IFTYPE_AP));
 
+       /* While the driver supports HW offload in a single
+        * P2P client configuration, it doesn't support HW
+        * offload in the favourit, concurrent P2P GO+CLIENT
+        * configuration. Hence, HW offload will always be
+        * disabled for P2P.
+        */
+       ar->disable_offload |= vif->p2p;
+
        ar->rx_software_decryption = ar->disable_offload;
 
        err = carl9170_set_operating_mode(ar);