aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-01-27 19:00:37 -0500
committerDavid S. Miller <davem@davemloft.net>2011-01-27 19:00:37 -0500
commit8571a19c4ac140f1a507f3e7eb716892afa27109 (patch)
tree55ef6a0ab68d6388177d3290a7fd6bc3f12a381f /include
parentaae7c47311659e5150b740d61c4be418198239fa (diff)
parent8d8d3fdc0d42be0ba75be227465773a54bb48a0b (diff)
Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h3
-rw-r--r--include/net/mac80211.h20
2 files changed, 21 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 1322695beb52..679a0494b5f2 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1790,8 +1790,9 @@ static inline void *wdev_priv(struct wireless_dev *wdev)
1790/** 1790/**
1791 * ieee80211_channel_to_frequency - convert channel number to frequency 1791 * ieee80211_channel_to_frequency - convert channel number to frequency
1792 * @chan: channel number 1792 * @chan: channel number
1793 * @band: band, necessary due to channel number overlap
1793 */ 1794 */
1794extern int ieee80211_channel_to_frequency(int chan); 1795extern int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band);
1795 1796
1796/** 1797/**
1797 * ieee80211_frequency_to_channel - convert frequency to channel number 1798 * ieee80211_frequency_to_channel - convert frequency to channel number
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 62c0ce2d1dc8..d6b0045788ce 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1147,6 +1147,17 @@ enum ieee80211_hw_flags {
1147 * @napi_weight: weight used for NAPI polling. You must specify an 1147 * @napi_weight: weight used for NAPI polling. You must specify an
1148 * appropriate value here if a napi_poll operation is provided 1148 * appropriate value here if a napi_poll operation is provided
1149 * by your driver. 1149 * by your driver.
1150
1151 * @max_rx_aggregation_subframes: maximum buffer size (number of
1152 * sub-frames) to be used for A-MPDU block ack receiver
1153 * aggregation.
1154 * This is only relevant if the device has restrictions on the
1155 * number of subframes, if it relies on mac80211 to do reordering
1156 * it shouldn't be set.
1157 *
1158 * @max_tx_aggregation_subframes: maximum number of subframes in an
1159 * aggregate an HT driver will transmit, used by the peer as a
1160 * hint to size its reorder buffer.
1150 */ 1161 */
1151struct ieee80211_hw { 1162struct ieee80211_hw {
1152 struct ieee80211_conf conf; 1163 struct ieee80211_conf conf;
@@ -1165,6 +1176,8 @@ struct ieee80211_hw {
1165 u8 max_rates; 1176 u8 max_rates;
1166 u8 max_report_rates; 1177 u8 max_report_rates;
1167 u8 max_rate_tries; 1178 u8 max_rate_tries;
1179 u8 max_rx_aggregation_subframes;
1180 u8 max_tx_aggregation_subframes;
1168}; 1181};
1169 1182
1170/** 1183/**
@@ -1723,6 +1736,10 @@ enum ieee80211_ampdu_mlme_action {
1723 * ieee80211_ampdu_mlme_action. Starting sequence number (@ssn) 1736 * ieee80211_ampdu_mlme_action. Starting sequence number (@ssn)
1724 * is the first frame we expect to perform the action on. Notice 1737 * is the first frame we expect to perform the action on. Notice
1725 * that TX/RX_STOP can pass NULL for this parameter. 1738 * that TX/RX_STOP can pass NULL for this parameter.
1739 * The @buf_size parameter is only valid when the action is set to
1740 * %IEEE80211_AMPDU_TX_OPERATIONAL and indicates the peer's reorder
1741 * buffer size (number of subframes) for this session -- aggregates
1742 * containing more subframes than this may not be transmitted to the peer.
1726 * Returns a negative error code on failure. 1743 * Returns a negative error code on failure.
1727 * The callback can sleep. 1744 * The callback can sleep.
1728 * 1745 *
@@ -1825,7 +1842,8 @@ struct ieee80211_ops {
1825 int (*ampdu_action)(struct ieee80211_hw *hw, 1842 int (*ampdu_action)(struct ieee80211_hw *hw,
1826 struct ieee80211_vif *vif, 1843 struct ieee80211_vif *vif,
1827 enum ieee80211_ampdu_mlme_action action, 1844 enum ieee80211_ampdu_mlme_action action,
1828 struct ieee80211_sta *sta, u16 tid, u16 *ssn); 1845 struct ieee80211_sta *sta, u16 tid, u16 *ssn,
1846 u8 buf_size);
1829 int (*get_survey)(struct ieee80211_hw *hw, int idx, 1847 int (*get_survey)(struct ieee80211_hw *hw, int idx,
1830 struct survey_info *survey); 1848 struct survey_info *survey);
1831 void (*rfkill_poll)(struct ieee80211_hw *hw); 1849 void (*rfkill_poll)(struct ieee80211_hw *hw);