diff options
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r-- | include/linux/nl80211.h | 62 |
1 files changed, 58 insertions, 4 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index a8d71ed43a0e..da8ea2e19273 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -160,6 +160,11 @@ | |||
160 | * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons, | 160 | * @NL80211_CMD_SCAN_ABORTED: scan was aborted, for unspecified reasons, |
161 | * partial scan results may be available | 161 | * partial scan results may be available |
162 | * | 162 | * |
163 | * @NL80211_CMD_GET_SURVEY: get survey resuls, e.g. channel occupation | ||
164 | * or noise level | ||
165 | * @NL80211_CMD_NEW_SURVEY_RESULTS: survey data notification (as a reply to | ||
166 | * NL80211_CMD_GET_SURVEY and on the "scan" multicast group) | ||
167 | * | ||
163 | * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain | 168 | * @NL80211_CMD_REG_CHANGE: indicates to userspace the regulatory domain |
164 | * has been changed and provides details of the request information | 169 | * has been changed and provides details of the request information |
165 | * that caused the change such as who initiated the regulatory request | 170 | * that caused the change such as who initiated the regulatory request |
@@ -341,6 +346,13 @@ enum nl80211_commands { | |||
341 | 346 | ||
342 | NL80211_CMD_SET_WIPHY_NETNS, | 347 | NL80211_CMD_SET_WIPHY_NETNS, |
343 | 348 | ||
349 | NL80211_CMD_GET_SURVEY, | ||
350 | NL80211_CMD_NEW_SURVEY_RESULTS, | ||
351 | |||
352 | NL80211_CMD_SET_PMKSA, | ||
353 | NL80211_CMD_DEL_PMKSA, | ||
354 | NL80211_CMD_FLUSH_PMKSA, | ||
355 | |||
344 | /* add new commands above here */ | 356 | /* add new commands above here */ |
345 | 357 | ||
346 | /* used to define NL80211_CMD_MAX below */ | 358 | /* used to define NL80211_CMD_MAX below */ |
@@ -584,6 +596,16 @@ enum nl80211_commands { | |||
584 | * changed then the list changed and the dump should be repeated | 596 | * changed then the list changed and the dump should be repeated |
585 | * completely from scratch. | 597 | * completely from scratch. |
586 | * | 598 | * |
599 | * @NL80211_ATTR_4ADDR: Use 4-address frames on a virtual interface | ||
600 | * | ||
601 | * @NL80211_ATTR_SURVEY_INFO: survey information about a channel, part of | ||
602 | * the survey response for %NL80211_CMD_GET_SURVEY, nested attribute | ||
603 | * containing info as possible, see &enum survey_info. | ||
604 | * | ||
605 | * @NL80211_ATTR_PMKID: PMK material for PMKSA caching. | ||
606 | * @NL80211_ATTR_MAX_NUM_PMKIDS: maximum number of PMKIDs a firmware can | ||
607 | * cache, a wiphy attribute. | ||
608 | * | ||
587 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 609 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
588 | * @__NL80211_ATTR_AFTER_LAST: internal use | 610 | * @__NL80211_ATTR_AFTER_LAST: internal use |
589 | */ | 611 | */ |
@@ -714,6 +736,13 @@ enum nl80211_attrs { | |||
714 | 736 | ||
715 | NL80211_ATTR_PID, | 737 | NL80211_ATTR_PID, |
716 | 738 | ||
739 | NL80211_ATTR_4ADDR, | ||
740 | |||
741 | NL80211_ATTR_SURVEY_INFO, | ||
742 | |||
743 | NL80211_ATTR_PMKID, | ||
744 | NL80211_ATTR_MAX_NUM_PMKIDS, | ||
745 | |||
717 | /* add attributes here, update the policy in nl80211.c */ | 746 | /* add attributes here, update the policy in nl80211.c */ |
718 | 747 | ||
719 | __NL80211_ATTR_AFTER_LAST, | 748 | __NL80211_ATTR_AFTER_LAST, |
@@ -895,14 +924,14 @@ enum nl80211_sta_info { | |||
895 | * | 924 | * |
896 | * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active | 925 | * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active |
897 | * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running | 926 | * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running |
898 | * @NL80211_MPATH_FLAG_DSN_VALID: the mesh path contains a valid DSN | 927 | * @NL80211_MPATH_FLAG_SN_VALID: the mesh path contains a valid SN |
899 | * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set | 928 | * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set |
900 | * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded | 929 | * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded |
901 | */ | 930 | */ |
902 | enum nl80211_mpath_flags { | 931 | enum nl80211_mpath_flags { |
903 | NL80211_MPATH_FLAG_ACTIVE = 1<<0, | 932 | NL80211_MPATH_FLAG_ACTIVE = 1<<0, |
904 | NL80211_MPATH_FLAG_RESOLVING = 1<<1, | 933 | NL80211_MPATH_FLAG_RESOLVING = 1<<1, |
905 | NL80211_MPATH_FLAG_DSN_VALID = 1<<2, | 934 | NL80211_MPATH_FLAG_SN_VALID = 1<<2, |
906 | NL80211_MPATH_FLAG_FIXED = 1<<3, | 935 | NL80211_MPATH_FLAG_FIXED = 1<<3, |
907 | NL80211_MPATH_FLAG_RESOLVED = 1<<4, | 936 | NL80211_MPATH_FLAG_RESOLVED = 1<<4, |
908 | }; | 937 | }; |
@@ -915,7 +944,7 @@ enum nl80211_mpath_flags { | |||
915 | * | 944 | * |
916 | * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved | 945 | * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved |
917 | * @NL80211_ATTR_MPATH_FRAME_QLEN: number of queued frames for this destination | 946 | * @NL80211_ATTR_MPATH_FRAME_QLEN: number of queued frames for this destination |
918 | * @NL80211_ATTR_MPATH_DSN: destination sequence number | 947 | * @NL80211_ATTR_MPATH_SN: destination sequence number |
919 | * @NL80211_ATTR_MPATH_METRIC: metric (cost) of this mesh path | 948 | * @NL80211_ATTR_MPATH_METRIC: metric (cost) of this mesh path |
920 | * @NL80211_ATTR_MPATH_EXPTIME: expiration time for the path, in msec from now | 949 | * @NL80211_ATTR_MPATH_EXPTIME: expiration time for the path, in msec from now |
921 | * @NL80211_ATTR_MPATH_FLAGS: mesh path flags, enumerated in | 950 | * @NL80211_ATTR_MPATH_FLAGS: mesh path flags, enumerated in |
@@ -926,7 +955,7 @@ enum nl80211_mpath_flags { | |||
926 | enum nl80211_mpath_info { | 955 | enum nl80211_mpath_info { |
927 | __NL80211_MPATH_INFO_INVALID, | 956 | __NL80211_MPATH_INFO_INVALID, |
928 | NL80211_MPATH_INFO_FRAME_QLEN, | 957 | NL80211_MPATH_INFO_FRAME_QLEN, |
929 | NL80211_MPATH_INFO_DSN, | 958 | NL80211_MPATH_INFO_SN, |
930 | NL80211_MPATH_INFO_METRIC, | 959 | NL80211_MPATH_INFO_METRIC, |
931 | NL80211_MPATH_INFO_EXPTIME, | 960 | NL80211_MPATH_INFO_EXPTIME, |
932 | NL80211_MPATH_INFO_FLAGS, | 961 | NL80211_MPATH_INFO_FLAGS, |
@@ -1117,6 +1146,26 @@ enum nl80211_reg_rule_flags { | |||
1117 | }; | 1146 | }; |
1118 | 1147 | ||
1119 | /** | 1148 | /** |
1149 | * enum nl80211_survey_info - survey information | ||
1150 | * | ||
1151 | * These attribute types are used with %NL80211_ATTR_SURVEY_INFO | ||
1152 | * when getting information about a survey. | ||
1153 | * | ||
1154 | * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved | ||
1155 | * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel | ||
1156 | * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) | ||
1157 | */ | ||
1158 | enum nl80211_survey_info { | ||
1159 | __NL80211_SURVEY_INFO_INVALID, | ||
1160 | NL80211_SURVEY_INFO_FREQUENCY, | ||
1161 | NL80211_SURVEY_INFO_NOISE, | ||
1162 | |||
1163 | /* keep last */ | ||
1164 | __NL80211_SURVEY_INFO_AFTER_LAST, | ||
1165 | NL80211_SURVEY_INFO_MAX = __NL80211_SURVEY_INFO_AFTER_LAST - 1 | ||
1166 | }; | ||
1167 | |||
1168 | /** | ||
1120 | * enum nl80211_mntr_flags - monitor configuration flags | 1169 | * enum nl80211_mntr_flags - monitor configuration flags |
1121 | * | 1170 | * |
1122 | * Monitor configuration flags. | 1171 | * Monitor configuration flags. |
@@ -1196,6 +1245,8 @@ enum nl80211_mntr_flags { | |||
1196 | * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs) | 1245 | * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs) |
1197 | * that it takes for an HWMP information element to propagate across the mesh | 1246 | * that it takes for an HWMP information element to propagate across the mesh |
1198 | * | 1247 | * |
1248 | * @NL80211_MESHCONF_ROOTMODE: whether root mode is enabled or not | ||
1249 | * | ||
1199 | * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute | 1250 | * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute |
1200 | * | 1251 | * |
1201 | * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use | 1252 | * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use |
@@ -1215,6 +1266,7 @@ enum nl80211_meshconf_params { | |||
1215 | NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT, | 1266 | NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT, |
1216 | NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, | 1267 | NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, |
1217 | NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, | 1268 | NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, |
1269 | NL80211_MESHCONF_HWMP_ROOTMODE, | ||
1218 | 1270 | ||
1219 | /* keep last */ | 1271 | /* keep last */ |
1220 | __NL80211_MESHCONF_ATTR_AFTER_LAST, | 1272 | __NL80211_MESHCONF_ATTR_AFTER_LAST, |
@@ -1277,6 +1329,7 @@ enum nl80211_channel_type { | |||
1277 | * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon | 1329 | * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon |
1278 | * in unspecified units, scaled to 0..100 (u8) | 1330 | * in unspecified units, scaled to 0..100 (u8) |
1279 | * @NL80211_BSS_STATUS: status, if this BSS is "used" | 1331 | * @NL80211_BSS_STATUS: status, if this BSS is "used" |
1332 | * @NL80211_BSS_SEEN_MS_AGO: age of this BSS entry in ms | ||
1280 | * @__NL80211_BSS_AFTER_LAST: internal | 1333 | * @__NL80211_BSS_AFTER_LAST: internal |
1281 | * @NL80211_BSS_MAX: highest BSS attribute | 1334 | * @NL80211_BSS_MAX: highest BSS attribute |
1282 | */ | 1335 | */ |
@@ -1291,6 +1344,7 @@ enum nl80211_bss { | |||
1291 | NL80211_BSS_SIGNAL_MBM, | 1344 | NL80211_BSS_SIGNAL_MBM, |
1292 | NL80211_BSS_SIGNAL_UNSPEC, | 1345 | NL80211_BSS_SIGNAL_UNSPEC, |
1293 | NL80211_BSS_STATUS, | 1346 | NL80211_BSS_STATUS, |
1347 | NL80211_BSS_SEEN_MS_AGO, | ||
1294 | 1348 | ||
1295 | /* keep last */ | 1349 | /* keep last */ |
1296 | __NL80211_BSS_AFTER_LAST, | 1350 | __NL80211_BSS_AFTER_LAST, |