diff options
author | Bala Shanmugam <bkamatch@qca.qualcomm.com> | 2012-03-07 06:57:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-12 14:19:34 -0400 |
commit | 4486ea987efdaa546bdda569e3dfacdc14a9fb13 (patch) | |
tree | 2d9a0bb6580772d483f7480469e6ce06f8f87bb3 /include/linux/nl80211.h | |
parent | bff2ec2b916cc85628f3025e08660c0350f03650 (diff) |
cfg80211: Add background scan period attribute.
Receive background scan period as part of connect
command and pass the same to the driver.
Signed-off-by: Bala Shanmugam <bkamatch@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r-- | include/linux/nl80211.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index c37d67add090..e474f6e780cc 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -369,6 +369,11 @@ | |||
369 | * %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT, | 369 | * %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT, |
370 | * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE and | 370 | * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE and |
371 | * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT. | 371 | * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT. |
372 | * Background scan period can optionally be | ||
373 | * specified in %NL80211_ATTR_BG_SCAN_PERIOD, | ||
374 | * if not specified default background scan configuration | ||
375 | * in driver is used and if period value is 0, bg scan will be disabled. | ||
376 | * This attribute is ignored if driver does not support roam scan. | ||
372 | * It is also sent as an event, with the BSSID and response IEs when the | 377 | * It is also sent as an event, with the BSSID and response IEs when the |
373 | * connection is established or failed to be established. This can be | 378 | * connection is established or failed to be established. This can be |
374 | * determined by the STATUS_CODE attribute. | 379 | * determined by the STATUS_CODE attribute. |
@@ -1207,6 +1212,9 @@ enum nl80211_commands { | |||
1207 | * this attribute is (depending on the driver capabilities) added to | 1212 | * this attribute is (depending on the driver capabilities) added to |
1208 | * received frames indicated with %NL80211_CMD_FRAME. | 1213 | * received frames indicated with %NL80211_CMD_FRAME. |
1209 | * | 1214 | * |
1215 | * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds | ||
1216 | * or 0 to disable background scan. | ||
1217 | * | ||
1210 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 1218 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
1211 | * @__NL80211_ATTR_AFTER_LAST: internal use | 1219 | * @__NL80211_ATTR_AFTER_LAST: internal use |
1212 | */ | 1220 | */ |
@@ -1456,6 +1464,8 @@ enum nl80211_attrs { | |||
1456 | 1464 | ||
1457 | NL80211_ATTR_RX_SIGNAL_DBM, | 1465 | NL80211_ATTR_RX_SIGNAL_DBM, |
1458 | 1466 | ||
1467 | NL80211_ATTR_BG_SCAN_PERIOD, | ||
1468 | |||
1459 | /* add attributes here, update the policy in nl80211.c */ | 1469 | /* add attributes here, update the policy in nl80211.c */ |
1460 | 1470 | ||
1461 | __NL80211_ATTR_AFTER_LAST, | 1471 | __NL80211_ATTR_AFTER_LAST, |