From: Ben Greear <greearb@candelatech.com>
To: ath10k@lists.infradead.org
Cc: kvalo@qca.qualcomm.com
Subject: Re: [PATCH 2/2] ath10k: Support rx-software-crypt mode.
Date: Wed, 22 Jan 2014 17:40:58 -0800 [thread overview]
Message-ID: <52E0732A.8030203@candelatech.com> (raw)
In-Reply-To: <1390437676-19906-2-git-send-email-greearb@candelatech.com>
On 01/22/2014 04:41 PM, greearb@candelatech.com wrote:
> From: Ben Greear <greearb@candelatech.com>
>
> With appropriate firmware (probably only CT firmware at this time)
> this allows enabling rx-software-crypt mode. This tells the
> firmware to not decrypt any packets received, but do encrypt
> (as needed) any packets on transmit. This is implemented to get
> around hardware issues that preclude using two stations to
> connect to the same AP while using encryption.
>
I should mention: This depends on a mac80211 patch I sent to
the linux-wireless mailing list. It defines and uses the key flag
used below...
Thanks,
Ben
> /**********/
> /* Crypto */
> /**********/
> @@ -77,6 +85,8 @@ static int ath10k_send_key(struct ath10k_vif *arvif,
> if (cmd == DISABLE_KEY) {
> arg.key_cipher = WMI_CIPHER_NONE;
> arg.key_data = NULL;
> + } else if (ath10k_modparam_nohwcrypt) {
> + key->flags |= IEEE80211_KEY_FLAG_SW_RX_CRYPT;
> }
>
> return ath10k_wmi_vdev_install_key(arvif->ar, &arg);
> @@ -2792,6 +2802,8 @@ static int ath10k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
>
> mutex_lock(&ar->conf_mutex);
>
> + key->flags &= ~IEEE80211_KEY_FLAG_SW_RX_CRYPT;
> +
> if (sta)
> peer_addr = sta->addr;
> else if (arvif->vdev_type == WMI_VDEV_TYPE_STA)
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
next prev parent reply other threads:[~2014-01-23 1:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-23 0:41 [PATCH 1/2] ath10k: Support 32 stations greearb
2014-01-23 0:41 ` [PATCH 2/2] ath10k: Support rx-software-crypt mode greearb
2014-01-23 1:40 ` Ben Greear [this message]
2014-01-23 6:30 ` [PATCH 1/2] ath10k: Support 32 stations Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E0732A.8030203@candelatech.com \
--to=greearb@candelatech.com \
--cc=ath10k@lists.infradead.org \
--cc=kvalo@qca.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox