diff options
author | Luciano Coelho <coelho@ti.com> | 2011-09-27 09:22:35 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-10-07 01:31:44 -0400 |
commit | c9e79a4714493df6508d8346195ea30fb69b7783 (patch) | |
tree | bf30d2950c501322948f66ee692beb81e920e75a | |
parent | 4b29886feb072427df80ca6395b2b11a09245eaf (diff) |
wl12xx: set max_sched_scan_ie_len correctly
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>
-rw-r--r-- | 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 e2d6edd2fcd2..b1b405b576cc 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -4679,6 +4679,9 @@ int wl1271_init_ieee80211(struct wl1271 *wl) | |||
4679 | wl->hw->wiphy->max_scan_ie_len = WL1271_CMD_TEMPL_DFLT_SIZE - | 4679 | wl->hw->wiphy->max_scan_ie_len = WL1271_CMD_TEMPL_DFLT_SIZE - |
4680 | sizeof(struct ieee80211_header); | 4680 | sizeof(struct ieee80211_header); |
4681 | 4681 | ||
4682 | wl->hw->wiphy->max_sched_scan_ie_len = WL1271_CMD_TEMPL_DFLT_SIZE - | ||
4683 | sizeof(struct ieee80211_header); | ||
4684 | |||
4682 | wl->hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD; | 4685 | wl->hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD; |
4683 | 4686 | ||
4684 | /* make sure all our channels fit in the scanned_ch bitmask */ | 4687 | /* make sure all our channels fit in the scanned_ch bitmask */ |