Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wl12xx: set max_sched_scan_ie_len correctly
@ 2011-09-27 13:22 Luciano Coelho
  2011-10-06 13:16 ` Luciano Coelho
  0 siblings, 1 reply; 2+ messages in thread
From: Luciano Coelho @ 2011-09-27 13:22 UTC (permalink / raw)
  To: coelho; +Cc: linux-wireless

The wiphy max_sched_scan_ie_len attribute was not set correctly and
remained as 0, so when IEs were being passed in a scheduled scan, we
were returning -EINVAL.

Fix this by setting the attribute properly.

Signed-off-by: Luciano Coelho <coelho@ti.com>
---
 drivers/net/wireless/wl12xx/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index a51dd0e..723d657 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -4677,6 +4677,9 @@ int wl1271_init_ieee80211(struct wl1271 *wl)
 	wl->hw->wiphy->max_scan_ie_len = WL1271_CMD_TEMPL_DFLT_SIZE -
 			sizeof(struct ieee80211_header);
 
+	wl->hw->wiphy->max_sched_scan_ie_len = WL1271_CMD_TEMPL_DFLT_SIZE -
+		sizeof(struct ieee80211_header);
+
 	wl->hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD;
 
 	/* make sure all our channels fit in the scanned_ch bitmask */
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] wl12xx: set max_sched_scan_ie_len correctly
  2011-09-27 13:22 [PATCH] wl12xx: set max_sched_scan_ie_len correctly Luciano Coelho
@ 2011-10-06 13:16 ` Luciano Coelho
  0 siblings, 0 replies; 2+ messages in thread
From: Luciano Coelho @ 2011-10-06 13:16 UTC (permalink / raw)
  To: linux-wireless

On Tue, 2011-09-27 at 16:22 +0300, Luciano Coelho wrote: 
> The wiphy max_sched_scan_ie_len attribute was not set correctly and
> remained as 0, so when IEs were being passed in a scheduled scan, we
> were returning -EINVAL.
> 
> Fix this by setting the attribute properly.
> 
> Signed-off-by: Luciano Coelho <coelho@ti.com>
> ---

Applied.

-- 
Cheers,
Luca.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-06 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 13:22 [PATCH] wl12xx: set max_sched_scan_ie_len correctly Luciano Coelho
2011-10-06 13:16 ` Luciano Coelho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox