diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2009-03-22 15:57:21 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-27 20:13:12 -0400 |
commit | 9050bdd8589c373e01e41ddbd9a192de2ff01ef0 (patch) | |
tree | a33c69c570d6db96bb54bb3b4b3eb5ea4b43d5ea /include/net | |
parent | 15b7b0629c8213905926394dc73d600e0ca250ce (diff) |
mac80211: disable power save when scanning
When software scanning we need to disable power save so that all possible
probe responses and beacons are received. For hardware scanning assume that
hardware will take care of that and document that assumption.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/mac80211.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index daa539a4287b..174dc1d7526b 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1307,11 +1307,13 @@ enum ieee80211_ampdu_mlme_action { | |||
1307 | * | 1307 | * |
1308 | * @hw_scan: Ask the hardware to service the scan request, no need to start | 1308 | * @hw_scan: Ask the hardware to service the scan request, no need to start |
1309 | * the scan state machine in stack. The scan must honour the channel | 1309 | * the scan state machine in stack. The scan must honour the channel |
1310 | * configuration done by the regulatory agent in the wiphy's registered | 1310 | * configuration done by the regulatory agent in the wiphy's |
1311 | * bands. When the scan finishes, ieee80211_scan_completed() must be | 1311 | * registered bands. The hardware (or the driver) needs to make sure |
1312 | * called; note that it also must be called when the scan cannot finish | 1312 | * that power save is disabled. When the scan finishes, |
1313 | * because the hardware is turned off! Anything else is a bug! | 1313 | * ieee80211_scan_completed() must be called; note that it also must |
1314 | * Returns a negative error code which will be seen in userspace. | 1314 | * be called when the scan cannot finish because the hardware is |
1315 | * turned off! Anything else is a bug! Returns a negative error code | ||
1316 | * which will be seen in userspace. | ||
1315 | * | 1317 | * |
1316 | * @sw_scan_start: Notifier function that is called just before a software scan | 1318 | * @sw_scan_start: Notifier function that is called just before a software scan |
1317 | * is started. Can be NULL, if the driver doesn't need this notification. | 1319 | * is started. Can be NULL, if the driver doesn't need this notification. |