Skip to content

Commit

Permalink
wl12xx: set max_sched_scan_ie_len correctly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luciano Coelho committed Oct 7, 2011
1 parent 4b29886 commit c9e79a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4679,6 +4679,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 */
Expand Down

0 comments on commit c9e79a4

Please sign in to comment.