mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
mac80211: support hw scan while idle
Currently, mac80211 goes to idle-off before starting a scan. However, some devices that implement hw scan might not need going idle-off in order to perform a hw scan, and thus saving some energy and simplifying their state machine. (Note that this is also the case for sched scan - it currently doesn't make mac80211 go idle-off) Add a new flag to indicate support for hw scan while idle. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
3dc5e17518
commit
885bd8eca6
4 changed files with 12 additions and 1 deletions
|
@ -263,6 +263,8 @@ static ssize_t hwflags_read(struct file *file, char __user *user_buf,
|
|||
sf += snprintf(buf + sf, mxln - sf, "AP_LINK_PS\n");
|
||||
if (local->hw.flags & IEEE80211_HW_TX_AMPDU_SETUP_IN_HW)
|
||||
sf += snprintf(buf + sf, mxln - sf, "TX_AMPDU_SETUP_IN_HW\n");
|
||||
if (local->hw.flags & IEEE80211_HW_SCAN_WHILE_IDLE)
|
||||
sf += snprintf(buf + sf, mxln - sf, "SCAN_WHILE_IDLE\n");
|
||||
|
||||
rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf));
|
||||
kfree(buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue