From: Guy Eilam <guy@wizery.com>
To: coelho@ti.com
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH 1/2] wl12xx: configure the probe response offloading support
Date: Sat, 22 Oct 2011 15:14:38 +0200 [thread overview]
Message-ID: <1319289279-21950-1-git-send-email-guy@wizery.com> (raw)
Configure and respond to a probe response offload query with
the relevant protocols supported currently by the driver.
Signed-off-by: Guy Eilam <guy@wizery.com>
---
drivers/net/wireless/wl12xx/conf.h | 2 ++
drivers/net/wireless/wl12xx/main.c | 15 +++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/wl12xx/conf.h b/drivers/net/wireless/wl12xx/conf.h
index 04bb8fb..714f9d4 100644
--- a/drivers/net/wireless/wl12xx/conf.h
+++ b/drivers/net/wireless/wl12xx/conf.h
@@ -1264,6 +1264,8 @@ struct conf_drv_settings {
struct conf_rate_policy_settings rate;
struct conf_hangover_settings hangover;
u8 hci_io_ds;
+ /* a bitmap of supported protocols for probe response offloading */
+ u32 probe_resp_offload;
};
#endif
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index f76be5a..0a7d020 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -373,6 +373,10 @@ static struct conf_drv_settings default_conf = {
.increase_time = 1,
.window_size = 16,
},
+ .probe_resp_offload =
+ BIT(NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS) |
+ BIT(NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2) |
+ BIT(NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P),
};
static char *fwlog_param;
@@ -4081,6 +4085,16 @@ static int wl1271_op_get_survey(struct ieee80211_hw *hw, int idx,
return 0;
}
+static int wl1271_op_get_probe_resp_offload(struct ieee80211_hw *hw,
+ u32 *supp_protocols)
+{
+ struct wl1271 *wl = hw->priv;
+
+ *supp_protocols = wl->conf.probe_resp_offload;
+
+ return 0;
+}
+
static int wl1271_allocate_sta(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct ieee80211_sta *sta)
@@ -4666,6 +4680,7 @@ static const struct ieee80211_ops wl1271_ops = {
.tx_frames_pending = wl1271_tx_frames_pending,
.set_bitrate_mask = wl12xx_set_bitrate_mask,
.channel_switch = wl12xx_op_channel_switch,
+ .get_probe_resp_offload = wl1271_op_get_probe_resp_offload,
CFG80211_TESTMODE_CMD(wl1271_tm_cmd)
};
--
1.7.4.1
next reply other threads:[~2011-10-22 13:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-22 13:14 Guy Eilam [this message]
2011-10-22 13:14 ` [PATCH 2/2] wl12xx: configure probe-resp template according to notification Guy Eilam
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=1319289279-21950-1-git-send-email-guy@wizery.com \
--to=guy@wizery.com \
--cc=coelho@ti.com \
--cc=linux-wireless@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.