From: Helmut Schaa <helmut.schaa@googlemail.com>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org, coelho@ti.com,
Helmut Schaa <helmut.schaa@googlemail.com>
Subject: [PATCH] wl12xx: Correctly set up protection if non-GF STAs are present
Date: Wed, 2 Mar 2011 10:46:46 +0100 [thread overview]
Message-ID: <1299059206-3919-1-git-send-email-helmut.schaa@googlemail.com> (raw)
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
---
I don't know wl12xx as all and I don't have such a device. This is based on the
assumption that setting acx->gf_protection to 1 enables protection for GF
transmissions. So, this is only compile tested.
It just popped up while discussing HT operation mode handling in hostapd.
Please review.
Thanks,
Helmut
drivers/net/wireless/wl12xx/acx.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/wl12xx/acx.c b/drivers/net/wireless/wl12xx/acx.c
index 3badc6b..a3db755 100644
--- a/drivers/net/wireless/wl12xx/acx.c
+++ b/drivers/net/wireless/wl12xx/acx.c
@@ -1361,7 +1361,8 @@ int wl1271_acx_set_ht_information(struct wl1271 *wl,
acx->ht_protection =
(u8)(ht_operation_mode & IEEE80211_HT_OP_MODE_PROTECTION);
acx->rifs_mode = 0;
- acx->gf_protection = 0;
+ acx->gf_protection =
+ !!(ht_operation_mode & IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT);
acx->ht_tx_burst_limit = 0;
acx->dual_cts_protection = 0;
--
1.7.1
next reply other threads:[~2011-03-02 9:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-02 9:46 Helmut Schaa [this message]
2011-03-03 15:45 ` [PATCH] wl12xx: Correctly set up protection if non-GF STAs are present Luciano Coelho
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=1299059206-3919-1-git-send-email-helmut.schaa@googlemail.com \
--to=helmut.schaa@googlemail.com \
--cc=coelho@ti.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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