diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2012-03-05 16:18:41 -0500 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2012-03-06 15:16:05 -0500 |
| commit | 804483e90794256f9ed53e795ffbf1e94de237c8 (patch) | |
| tree | 22a4d8ade674bb42aaf4d3e878dfd6a73b618dcc /include/linux | |
| parent | 769009b89d8c29c410a99eee3cd63764b1fff869 (diff) | |
cfg80211/mac80211: report signal strength for mgmt frames
Add the signal strength (in dBm only for now) to
frames that are received via nl80211's various
frame APIs.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nl80211.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 9f46c62b1eee..c37d67add090 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
| @@ -1203,6 +1203,10 @@ enum nl80211_commands { | |||
| 1203 | * the list. This needs to be used when the driver advertises the | 1203 | * the list. This needs to be used when the driver advertises the |
| 1204 | * capability to timeout the stations. | 1204 | * capability to timeout the stations. |
| 1205 | * | 1205 | * |
| 1206 | * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int); | ||
| 1207 | * this attribute is (depending on the driver capabilities) added to | ||
| 1208 | * received frames indicated with %NL80211_CMD_FRAME. | ||
| 1209 | * | ||
| 1206 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 1210 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 1207 | * @__NL80211_ATTR_AFTER_LAST: internal use | 1211 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| 1208 | */ | 1212 | */ |
| @@ -1450,6 +1454,8 @@ enum nl80211_attrs { | |||
| 1450 | 1454 | ||
| 1451 | NL80211_ATTR_INACTIVITY_TIMEOUT, | 1455 | NL80211_ATTR_INACTIVITY_TIMEOUT, |
| 1452 | 1456 | ||
| 1457 | NL80211_ATTR_RX_SIGNAL_DBM, | ||
| 1458 | |||
| 1453 | /* add attributes here, update the policy in nl80211.c */ | 1459 | /* add attributes here, update the policy in nl80211.c */ |
| 1454 | 1460 | ||
| 1455 | __NL80211_ATTR_AFTER_LAST, | 1461 | __NL80211_ATTR_AFTER_LAST, |
