diff options
author | David S. Miller <davem@davemloft.net> | 2010-11-29 14:19:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-29 14:19:09 -0500 |
commit | 77148625e10d0fda50d05e92d199c0df17b66e9a (patch) | |
tree | fdb5bb1e06933dc8891a3c4d3c93c371801d8b37 /include/linux | |
parent | a41778694806ac1ccd4b1dafed1abef8d5ba98ac (diff) | |
parent | 51cce8a590c4696d62bfacc63378d1036084cef7 (diff) |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/average.h | 32 | ||||
-rw-r--r-- | include/linux/nl80211.h | 32 | ||||
-rw-r--r-- | include/linux/pci_ids.h | 1 |
3 files changed, 65 insertions, 0 deletions
diff --git a/include/linux/average.h b/include/linux/average.h new file mode 100644 index 000000000000..7706e40f95fa --- /dev/null +++ b/include/linux/average.h | |||
@@ -0,0 +1,32 @@ | |||
1 | #ifndef _LINUX_AVERAGE_H | ||
2 | #define _LINUX_AVERAGE_H | ||
3 | |||
4 | #include <linux/kernel.h> | ||
5 | |||
6 | /* Exponentially weighted moving average (EWMA) */ | ||
7 | |||
8 | /* For more documentation see lib/average.c */ | ||
9 | |||
10 | struct ewma { | ||
11 | unsigned long internal; | ||
12 | unsigned long factor; | ||
13 | unsigned long weight; | ||
14 | }; | ||
15 | |||
16 | extern void ewma_init(struct ewma *avg, unsigned long factor, | ||
17 | unsigned long weight); | ||
18 | |||
19 | extern struct ewma *ewma_add(struct ewma *avg, unsigned long val); | ||
20 | |||
21 | /** | ||
22 | * ewma_read() - Get average value | ||
23 | * @avg: Average structure | ||
24 | * | ||
25 | * Returns the average value held in @avg. | ||
26 | */ | ||
27 | static inline unsigned long ewma_read(const struct ewma *avg) | ||
28 | { | ||
29 | return DIV_ROUND_CLOSEST(avg->internal, avg->factor); | ||
30 | } | ||
31 | |||
32 | #endif /* _LINUX_AVERAGE_H */ | ||
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index fb877b5621b7..d706bf3badc8 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -804,6 +804,30 @@ enum nl80211_commands { | |||
804 | * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly | 804 | * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly |
805 | * means support for per-station GTKs. | 805 | * means support for per-station GTKs. |
806 | * | 806 | * |
807 | * @NL80211_ATTR_WIPHY_ANTENNA_TX: Bitmap of allowed antennas for transmitting. | ||
808 | * This can be used to mask out antennas which are not attached or should | ||
809 | * not be used for transmitting. If an antenna is not selected in this | ||
810 | * bitmap the hardware is not allowed to transmit on this antenna. | ||
811 | * | ||
812 | * Each bit represents one antenna, starting with antenna 1 at the first | ||
813 | * bit. Depending on which antennas are selected in the bitmap, 802.11n | ||
814 | * drivers can derive which chainmasks to use (if all antennas belonging to | ||
815 | * a particular chain are disabled this chain should be disabled) and if | ||
816 | * a chain has diversity antennas wether diversity should be used or not. | ||
817 | * HT capabilities (STBC, TX Beamforming, Antenna selection) can be | ||
818 | * derived from the available chains after applying the antenna mask. | ||
819 | * Non-802.11n drivers can derive wether to use diversity or not. | ||
820 | * Drivers may reject configurations or RX/TX mask combinations they cannot | ||
821 | * support by returning -EINVAL. | ||
822 | * | ||
823 | * @NL80211_ATTR_WIPHY_ANTENNA_RX: Bitmap of allowed antennas for receiving. | ||
824 | * This can be used to mask out antennas which are not attached or should | ||
825 | * not be used for receiving. If an antenna is not selected in this bitmap | ||
826 | * the hardware should not be configured to receive on this antenna. | ||
827 | * For a more detailed descripton see @NL80211_ATTR_WIPHY_ANTENNA_TX. | ||
828 | * | ||
829 | * @NL80211_ATTR_MCAST_RATE: Multicast tx rate (in 100 kbps) for IBSS | ||
830 | * | ||
807 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 831 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
808 | * @__NL80211_ATTR_AFTER_LAST: internal use | 832 | * @__NL80211_ATTR_AFTER_LAST: internal use |
809 | */ | 833 | */ |
@@ -973,6 +997,11 @@ enum nl80211_attrs { | |||
973 | 997 | ||
974 | NL80211_ATTR_SUPPORT_IBSS_RSN, | 998 | NL80211_ATTR_SUPPORT_IBSS_RSN, |
975 | 999 | ||
1000 | NL80211_ATTR_WIPHY_ANTENNA_TX, | ||
1001 | NL80211_ATTR_WIPHY_ANTENNA_RX, | ||
1002 | |||
1003 | NL80211_ATTR_MCAST_RATE, | ||
1004 | |||
976 | /* add attributes here, update the policy in nl80211.c */ | 1005 | /* add attributes here, update the policy in nl80211.c */ |
977 | 1006 | ||
978 | __NL80211_ATTR_AFTER_LAST, | 1007 | __NL80211_ATTR_AFTER_LAST, |
@@ -1790,6 +1819,8 @@ enum nl80211_ps_state { | |||
1790 | * the minimum amount the RSSI level must change after an event before a | 1819 | * the minimum amount the RSSI level must change after an event before a |
1791 | * new event may be issued (to reduce effects of RSSI oscillation). | 1820 | * new event may be issued (to reduce effects of RSSI oscillation). |
1792 | * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event | 1821 | * @NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT: RSSI threshold event |
1822 | * @NL80211_ATTR_CQM_PKT_LOSS_EVENT: a u32 value indicating that this many | ||
1823 | * consecutive packets were not acknowledged by the peer | ||
1793 | * @__NL80211_ATTR_CQM_AFTER_LAST: internal | 1824 | * @__NL80211_ATTR_CQM_AFTER_LAST: internal |
1794 | * @NL80211_ATTR_CQM_MAX: highest key attribute | 1825 | * @NL80211_ATTR_CQM_MAX: highest key attribute |
1795 | */ | 1826 | */ |
@@ -1798,6 +1829,7 @@ enum nl80211_attr_cqm { | |||
1798 | NL80211_ATTR_CQM_RSSI_THOLD, | 1829 | NL80211_ATTR_CQM_RSSI_THOLD, |
1799 | NL80211_ATTR_CQM_RSSI_HYST, | 1830 | NL80211_ATTR_CQM_RSSI_HYST, |
1800 | NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT, | 1831 | NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT, |
1832 | NL80211_ATTR_CQM_PKT_LOSS_EVENT, | ||
1801 | 1833 | ||
1802 | /* keep last */ | 1834 | /* keep last */ |
1803 | __NL80211_ATTR_CQM_AFTER_LAST, | 1835 | __NL80211_ATTR_CQM_AFTER_LAST, |
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index c6bcfe93b9ca..32bd56949604 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
@@ -2047,6 +2047,7 @@ | |||
2047 | #define PCI_DEVICE_ID_AFAVLAB_P030 0x2182 | 2047 | #define PCI_DEVICE_ID_AFAVLAB_P030 0x2182 |
2048 | #define PCI_SUBDEVICE_ID_AFAVLAB_P061 0x2150 | 2048 | #define PCI_SUBDEVICE_ID_AFAVLAB_P061 0x2150 |
2049 | 2049 | ||
2050 | #define PCI_VENDOR_ID_BCM_GVC 0x14a4 | ||
2050 | #define PCI_VENDOR_ID_BROADCOM 0x14e4 | 2051 | #define PCI_VENDOR_ID_BROADCOM 0x14e4 |
2051 | #define PCI_DEVICE_ID_TIGON3_5752 0x1600 | 2052 | #define PCI_DEVICE_ID_TIGON3_5752 0x1600 |
2052 | #define PCI_DEVICE_ID_TIGON3_5752M 0x1601 | 2053 | #define PCI_DEVICE_ID_TIGON3_5752M 0x1601 |