diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/average.h | 4 | ||||
-rw-r--r-- | include/linux/ieee80211.h | 3 | ||||
-rw-r--r-- | include/linux/nl80211.h | 18 |
3 files changed, 22 insertions, 3 deletions
diff --git a/include/linux/average.h b/include/linux/average.h index 7706e40f95fa..c6028fd742c1 100644 --- a/include/linux/average.h +++ b/include/linux/average.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef _LINUX_AVERAGE_H | 1 | #ifndef _LINUX_AVERAGE_H |
2 | #define _LINUX_AVERAGE_H | 2 | #define _LINUX_AVERAGE_H |
3 | 3 | ||
4 | #include <linux/kernel.h> | ||
5 | |||
6 | /* Exponentially weighted moving average (EWMA) */ | 4 | /* Exponentially weighted moving average (EWMA) */ |
7 | 5 | ||
8 | /* For more documentation see lib/average.c */ | 6 | /* For more documentation see lib/average.c */ |
@@ -26,7 +24,7 @@ extern struct ewma *ewma_add(struct ewma *avg, unsigned long val); | |||
26 | */ | 24 | */ |
27 | static inline unsigned long ewma_read(const struct ewma *avg) | 25 | static inline unsigned long ewma_read(const struct ewma *avg) |
28 | { | 26 | { |
29 | return DIV_ROUND_CLOSEST(avg->internal, avg->factor); | 27 | return avg->internal >> avg->factor; |
30 | } | 28 | } |
31 | 29 | ||
32 | #endif /* _LINUX_AVERAGE_H */ | 30 | #endif /* _LINUX_AVERAGE_H */ |
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index ed5a03cbe184..351c0ab4e284 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h | |||
@@ -1223,6 +1223,9 @@ enum ieee80211_eid { | |||
1223 | WLAN_EID_BSS_AC_ACCESS_DELAY = 68, | 1223 | WLAN_EID_BSS_AC_ACCESS_DELAY = 68, |
1224 | WLAN_EID_RRM_ENABLED_CAPABILITIES = 70, | 1224 | WLAN_EID_RRM_ENABLED_CAPABILITIES = 70, |
1225 | WLAN_EID_MULTIPLE_BSSID = 71, | 1225 | WLAN_EID_MULTIPLE_BSSID = 71, |
1226 | WLAN_EID_BSS_COEX_2040 = 72, | ||
1227 | WLAN_EID_OVERLAP_BSS_SCAN_PARAM = 74, | ||
1228 | WLAN_EID_EXT_CAPABILITY = 127, | ||
1226 | 1229 | ||
1227 | WLAN_EID_MOBILITY_DOMAIN = 54, | 1230 | WLAN_EID_MOBILITY_DOMAIN = 54, |
1228 | WLAN_EID_FAST_BSS_TRANSITION = 55, | 1231 | WLAN_EID_FAST_BSS_TRANSITION = 55, |
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 5cfa579df476..380421253d16 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -394,6 +394,11 @@ | |||
394 | * | 394 | * |
395 | * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface. | 395 | * @NL80211_CMD_SET_WDS_PEER: Set the MAC address of the peer on a WDS interface. |
396 | * | 396 | * |
397 | * @NL80211_CMD_JOIN_MESH: Join a mesh. The mesh ID must be given, and initial | ||
398 | * mesh config parameters may be given. | ||
399 | * @NL80211_CMD_LEAVE_MESH: Leave the mesh network -- no special arguments, the | ||
400 | * network is determined by the network interface. | ||
401 | * | ||
397 | * @NL80211_CMD_MAX: highest used command number | 402 | * @NL80211_CMD_MAX: highest used command number |
398 | * @__NL80211_CMD_AFTER_LAST: internal use | 403 | * @__NL80211_CMD_AFTER_LAST: internal use |
399 | */ | 404 | */ |
@@ -500,6 +505,9 @@ enum nl80211_commands { | |||
500 | 505 | ||
501 | NL80211_CMD_FRAME_WAIT_CANCEL, | 506 | NL80211_CMD_FRAME_WAIT_CANCEL, |
502 | 507 | ||
508 | NL80211_CMD_JOIN_MESH, | ||
509 | NL80211_CMD_LEAVE_MESH, | ||
510 | |||
503 | /* add new commands above here */ | 511 | /* add new commands above here */ |
504 | 512 | ||
505 | /* used to define NL80211_CMD_MAX below */ | 513 | /* used to define NL80211_CMD_MAX below */ |
@@ -841,6 +849,8 @@ enum nl80211_commands { | |||
841 | * flag isn't set, the frame will be rejected. This is also used as an | 849 | * flag isn't set, the frame will be rejected. This is also used as an |
842 | * nl80211 capability flag. | 850 | * nl80211 capability flag. |
843 | * | 851 | * |
852 | * @NL80211_ATTR_BSS_HTOPMODE: HT operation mode (u16) | ||
853 | * | ||
844 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 854 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
845 | * @__NL80211_ATTR_AFTER_LAST: internal use | 855 | * @__NL80211_ATTR_AFTER_LAST: internal use |
846 | */ | 856 | */ |
@@ -1017,6 +1027,8 @@ enum nl80211_attrs { | |||
1017 | 1027 | ||
1018 | NL80211_ATTR_OFFCHANNEL_TX_OK, | 1028 | NL80211_ATTR_OFFCHANNEL_TX_OK, |
1019 | 1029 | ||
1030 | NL80211_ATTR_BSS_HT_OPMODE, | ||
1031 | |||
1020 | /* add attributes here, update the policy in nl80211.c */ | 1032 | /* add attributes here, update the policy in nl80211.c */ |
1021 | 1033 | ||
1022 | __NL80211_ATTR_AFTER_LAST, | 1034 | __NL80211_ATTR_AFTER_LAST, |
@@ -1183,6 +1195,7 @@ enum nl80211_rate_info { | |||
1183 | * station) | 1195 | * station) |
1184 | * @NL80211_STA_INFO_TX_RETRIES: total retries (u32, to this station) | 1196 | * @NL80211_STA_INFO_TX_RETRIES: total retries (u32, to this station) |
1185 | * @NL80211_STA_INFO_TX_FAILED: total failed packets (u32, to this station) | 1197 | * @NL80211_STA_INFO_TX_FAILED: total failed packets (u32, to this station) |
1198 | * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm) | ||
1186 | */ | 1199 | */ |
1187 | enum nl80211_sta_info { | 1200 | enum nl80211_sta_info { |
1188 | __NL80211_STA_INFO_INVALID, | 1201 | __NL80211_STA_INFO_INVALID, |
@@ -1198,6 +1211,7 @@ enum nl80211_sta_info { | |||
1198 | NL80211_STA_INFO_TX_PACKETS, | 1211 | NL80211_STA_INFO_TX_PACKETS, |
1199 | NL80211_STA_INFO_TX_RETRIES, | 1212 | NL80211_STA_INFO_TX_RETRIES, |
1200 | NL80211_STA_INFO_TX_FAILED, | 1213 | NL80211_STA_INFO_TX_FAILED, |
1214 | NL80211_STA_INFO_SIGNAL_AVG, | ||
1201 | 1215 | ||
1202 | /* keep last */ | 1216 | /* keep last */ |
1203 | __NL80211_STA_INFO_AFTER_LAST, | 1217 | __NL80211_STA_INFO_AFTER_LAST, |
@@ -1547,6 +1561,9 @@ enum nl80211_mntr_flags { | |||
1547 | * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh | 1561 | * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh |
1548 | * point. | 1562 | * point. |
1549 | * | 1563 | * |
1564 | * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a | ||
1565 | * source mesh point for path selection elements. | ||
1566 | * | ||
1550 | * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically | 1567 | * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically |
1551 | * open peer links when we detect compatible mesh peers. | 1568 | * open peer links when we detect compatible mesh peers. |
1552 | * | 1569 | * |
@@ -1593,6 +1610,7 @@ enum nl80211_meshconf_params { | |||
1593 | NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, | 1610 | NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, |
1594 | NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, | 1611 | NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, |
1595 | NL80211_MESHCONF_HWMP_ROOTMODE, | 1612 | NL80211_MESHCONF_HWMP_ROOTMODE, |
1613 | NL80211_MESHCONF_ELEMENT_TTL, | ||
1596 | 1614 | ||
1597 | /* keep last */ | 1615 | /* keep last */ |
1598 | __NL80211_MESHCONF_ATTR_AFTER_LAST, | 1616 | __NL80211_MESHCONF_ATTR_AFTER_LAST, |