diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dcbnl.h | 2 | ||||
-rw-r--r-- | include/linux/netdevice.h | 24 | ||||
-rw-r--r-- | include/linux/nl80211.h | 53 | ||||
-rw-r--r-- | include/net/cfg80211.h | 42 | ||||
-rw-r--r-- | include/net/dcbnl.h | 2 | ||||
-rw-r--r-- | include/net/irda/irda_device.h | 4 | ||||
-rw-r--r-- | include/net/mac80211.h | 26 | ||||
-rw-r--r-- | include/net/netlink.h | 2 | ||||
-rw-r--r-- | include/net/sctp/user.h | 2 |
9 files changed, 117 insertions, 40 deletions
diff --git a/include/linux/dcbnl.h b/include/linux/dcbnl.h index e73a61449ad..b0ef274e003 100644 --- a/include/linux/dcbnl.h +++ b/include/linux/dcbnl.h | |||
@@ -305,6 +305,8 @@ enum dcbnl_bcn_attrs{ | |||
305 | DCB_BCN_ATTR_RP_7, | 305 | DCB_BCN_ATTR_RP_7, |
306 | DCB_BCN_ATTR_RP_ALL, | 306 | DCB_BCN_ATTR_RP_ALL, |
307 | 307 | ||
308 | DCB_BCN_ATTR_BCNA_0, | ||
309 | DCB_BCN_ATTR_BCNA_1, | ||
308 | DCB_BCN_ATTR_ALPHA, | 310 | DCB_BCN_ATTR_ALPHA, |
309 | DCB_BCN_ATTR_BETA, | 311 | DCB_BCN_ATTR_BETA, |
310 | DCB_BCN_ATTR_GD, | 312 | DCB_BCN_ATTR_GD, |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 58856b6737f..41e1224651c 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1555,8 +1555,7 @@ static inline u32 netif_msg_init(int debug_value, int default_msg_enable_bits) | |||
1555 | } | 1555 | } |
1556 | 1556 | ||
1557 | /* Test if receive needs to be scheduled but only if up */ | 1557 | /* Test if receive needs to be scheduled but only if up */ |
1558 | static inline int netif_rx_schedule_prep(struct net_device *dev, | 1558 | static inline int netif_rx_schedule_prep(struct napi_struct *napi) |
1559 | struct napi_struct *napi) | ||
1560 | { | 1559 | { |
1561 | return napi_schedule_prep(napi); | 1560 | return napi_schedule_prep(napi); |
1562 | } | 1561 | } |
@@ -1564,27 +1563,24 @@ static inline int netif_rx_schedule_prep(struct net_device *dev, | |||
1564 | /* Add interface to tail of rx poll list. This assumes that _prep has | 1563 | /* Add interface to tail of rx poll list. This assumes that _prep has |
1565 | * already been called and returned 1. | 1564 | * already been called and returned 1. |
1566 | */ | 1565 | */ |
1567 | static inline void __netif_rx_schedule(struct net_device *dev, | 1566 | static inline void __netif_rx_schedule(struct napi_struct *napi) |
1568 | struct napi_struct *napi) | ||
1569 | { | 1567 | { |
1570 | __napi_schedule(napi); | 1568 | __napi_schedule(napi); |
1571 | } | 1569 | } |
1572 | 1570 | ||
1573 | /* Try to reschedule poll. Called by irq handler. */ | 1571 | /* Try to reschedule poll. Called by irq handler. */ |
1574 | 1572 | ||
1575 | static inline void netif_rx_schedule(struct net_device *dev, | 1573 | static inline void netif_rx_schedule(struct napi_struct *napi) |
1576 | struct napi_struct *napi) | ||
1577 | { | 1574 | { |
1578 | if (netif_rx_schedule_prep(dev, napi)) | 1575 | if (netif_rx_schedule_prep(napi)) |
1579 | __netif_rx_schedule(dev, napi); | 1576 | __netif_rx_schedule(napi); |
1580 | } | 1577 | } |
1581 | 1578 | ||
1582 | /* Try to reschedule poll. Called by dev->poll() after netif_rx_complete(). */ | 1579 | /* Try to reschedule poll. Called by dev->poll() after netif_rx_complete(). */ |
1583 | static inline int netif_rx_reschedule(struct net_device *dev, | 1580 | static inline int netif_rx_reschedule(struct napi_struct *napi) |
1584 | struct napi_struct *napi) | ||
1585 | { | 1581 | { |
1586 | if (napi_schedule_prep(napi)) { | 1582 | if (napi_schedule_prep(napi)) { |
1587 | __netif_rx_schedule(dev, napi); | 1583 | __netif_rx_schedule(napi); |
1588 | return 1; | 1584 | return 1; |
1589 | } | 1585 | } |
1590 | return 0; | 1586 | return 0; |
@@ -1593,8 +1589,7 @@ static inline int netif_rx_reschedule(struct net_device *dev, | |||
1593 | /* same as netif_rx_complete, except that local_irq_save(flags) | 1589 | /* same as netif_rx_complete, except that local_irq_save(flags) |
1594 | * has already been issued | 1590 | * has already been issued |
1595 | */ | 1591 | */ |
1596 | static inline void __netif_rx_complete(struct net_device *dev, | 1592 | static inline void __netif_rx_complete(struct napi_struct *napi) |
1597 | struct napi_struct *napi) | ||
1598 | { | 1593 | { |
1599 | __napi_complete(napi); | 1594 | __napi_complete(napi); |
1600 | } | 1595 | } |
@@ -1604,8 +1599,7 @@ static inline void __netif_rx_complete(struct net_device *dev, | |||
1604 | * it completes the work. The device cannot be out of poll list at this | 1599 | * it completes the work. The device cannot be out of poll list at this |
1605 | * moment, it is BUG(). | 1600 | * moment, it is BUG(). |
1606 | */ | 1601 | */ |
1607 | static inline void netif_rx_complete(struct net_device *dev, | 1602 | static inline void netif_rx_complete(struct napi_struct *napi) |
1608 | struct napi_struct *napi) | ||
1609 | { | 1603 | { |
1610 | napi_complete(napi); | 1604 | napi_complete(napi); |
1611 | } | 1605 | } |
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 04d4516f9c7..e86ed59f9ad 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -201,13 +201,13 @@ enum nl80211_commands { | |||
201 | * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming) | 201 | * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming) |
202 | * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters | 202 | * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters |
203 | * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz | 203 | * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz |
204 | * @NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET: included with NL80211_ATTR_WIPHY_FREQ | 204 | * @NL80211_ATTR_WIPHY_CHANNEL_TYPE: included with NL80211_ATTR_WIPHY_FREQ |
205 | * if HT20 or HT40 are allowed (i.e., 802.11n disabled if not included): | 205 | * if HT20 or HT40 are allowed (i.e., 802.11n disabled if not included): |
206 | * NL80211_SEC_CHAN_NO_HT = HT not allowed (i.e., same as not including | 206 | * NL80211_CHAN_NO_HT = HT not allowed (i.e., same as not including |
207 | * this attribute) | 207 | * this attribute) |
208 | * NL80211_SEC_CHAN_DISABLED = HT20 only | 208 | * NL80211_CHAN_HT20 = HT20 only |
209 | * NL80211_SEC_CHAN_BELOW = secondary channel is below the primary channel | 209 | * NL80211_CHAN_HT40MINUS = secondary channel is below the primary channel |
210 | * NL80211_SEC_CHAN_ABOVE = secondary channel is above the primary channel | 210 | * NL80211_CHAN_HT40PLUS = secondary channel is above the primary channel |
211 | * | 211 | * |
212 | * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on | 212 | * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on |
213 | * @NL80211_ATTR_IFNAME: network interface name | 213 | * @NL80211_ATTR_IFNAME: network interface name |
@@ -344,7 +344,7 @@ enum nl80211_attrs { | |||
344 | 344 | ||
345 | NL80211_ATTR_WIPHY_TXQ_PARAMS, | 345 | NL80211_ATTR_WIPHY_TXQ_PARAMS, |
346 | NL80211_ATTR_WIPHY_FREQ, | 346 | NL80211_ATTR_WIPHY_FREQ, |
347 | NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET, | 347 | NL80211_ATTR_WIPHY_CHANNEL_TYPE, |
348 | 348 | ||
349 | /* add attributes here, update the policy in nl80211.c */ | 349 | /* add attributes here, update the policy in nl80211.c */ |
350 | 350 | ||
@@ -425,6 +425,32 @@ enum nl80211_sta_flags { | |||
425 | }; | 425 | }; |
426 | 426 | ||
427 | /** | 427 | /** |
428 | * enum nl80211_rate_info - bitrate information | ||
429 | * | ||
430 | * These attribute types are used with %NL80211_STA_INFO_TXRATE | ||
431 | * when getting information about the bitrate of a station. | ||
432 | * | ||
433 | * @__NL80211_RATE_INFO_INVALID: attribute number 0 is reserved | ||
434 | * @NL80211_RATE_INFO_BITRATE: total bitrate (u16, 100kbit/s) | ||
435 | * @NL80211_RATE_INFO_MCS: mcs index for 802.11n (u8) | ||
436 | * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 Mhz dualchannel bitrate | ||
437 | * @NL80211_RATE_INFO_SHORT_GI: 400ns guard interval | ||
438 | * @NL80211_RATE_INFO_MAX: highest rate_info number currently defined | ||
439 | * @__NL80211_RATE_INFO_AFTER_LAST: internal use | ||
440 | */ | ||
441 | enum nl80211_rate_info { | ||
442 | __NL80211_RATE_INFO_INVALID, | ||
443 | NL80211_RATE_INFO_BITRATE, | ||
444 | NL80211_RATE_INFO_MCS, | ||
445 | NL80211_RATE_INFO_40_MHZ_WIDTH, | ||
446 | NL80211_RATE_INFO_SHORT_GI, | ||
447 | |||
448 | /* keep last */ | ||
449 | __NL80211_RATE_INFO_AFTER_LAST, | ||
450 | NL80211_RATE_INFO_MAX = __NL80211_RATE_INFO_AFTER_LAST - 1 | ||
451 | }; | ||
452 | |||
453 | /** | ||
428 | * enum nl80211_sta_info - station information | 454 | * enum nl80211_sta_info - station information |
429 | * | 455 | * |
430 | * These attribute types are used with %NL80211_ATTR_STA_INFO | 456 | * These attribute types are used with %NL80211_ATTR_STA_INFO |
@@ -436,6 +462,9 @@ enum nl80211_sta_flags { | |||
436 | * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (u32, to this station) | 462 | * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (u32, to this station) |
437 | * @__NL80211_STA_INFO_AFTER_LAST: internal | 463 | * @__NL80211_STA_INFO_AFTER_LAST: internal |
438 | * @NL80211_STA_INFO_MAX: highest possible station info attribute | 464 | * @NL80211_STA_INFO_MAX: highest possible station info attribute |
465 | * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm) | ||
466 | * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute | ||
467 | * containing info as possible, see &enum nl80211_sta_info_txrate. | ||
439 | */ | 468 | */ |
440 | enum nl80211_sta_info { | 469 | enum nl80211_sta_info { |
441 | __NL80211_STA_INFO_INVALID, | 470 | __NL80211_STA_INFO_INVALID, |
@@ -445,6 +474,8 @@ enum nl80211_sta_info { | |||
445 | NL80211_STA_INFO_LLID, | 474 | NL80211_STA_INFO_LLID, |
446 | NL80211_STA_INFO_PLID, | 475 | NL80211_STA_INFO_PLID, |
447 | NL80211_STA_INFO_PLINK_STATE, | 476 | NL80211_STA_INFO_PLINK_STATE, |
477 | NL80211_STA_INFO_SIGNAL, | ||
478 | NL80211_STA_INFO_TX_BITRATE, | ||
448 | 479 | ||
449 | /* keep last */ | 480 | /* keep last */ |
450 | __NL80211_STA_INFO_AFTER_LAST, | 481 | __NL80211_STA_INFO_AFTER_LAST, |
@@ -774,10 +805,10 @@ enum nl80211_txq_q { | |||
774 | NL80211_TXQ_Q_BK | 805 | NL80211_TXQ_Q_BK |
775 | }; | 806 | }; |
776 | 807 | ||
777 | enum nl80211_sec_chan_offset { | 808 | enum nl80211_channel_type { |
778 | NL80211_SEC_CHAN_NO_HT /* No HT */, | 809 | NL80211_CHAN_NO_HT, |
779 | NL80211_SEC_CHAN_DISABLED /* HT20 only */, | 810 | NL80211_CHAN_HT20, |
780 | NL80211_SEC_CHAN_BELOW /* HT40- */, | 811 | NL80211_CHAN_HT40MINUS, |
781 | NL80211_SEC_CHAN_ABOVE /* HT40+ */ | 812 | NL80211_CHAN_HT40PLUS |
782 | }; | 813 | }; |
783 | #endif /* __LINUX_NL80211_H */ | 814 | #endif /* __LINUX_NL80211_H */ |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index a0c0bf19496..23c0ab74ded 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -169,6 +169,9 @@ struct station_parameters { | |||
169 | * @STATION_INFO_LLID: @llid filled | 169 | * @STATION_INFO_LLID: @llid filled |
170 | * @STATION_INFO_PLID: @plid filled | 170 | * @STATION_INFO_PLID: @plid filled |
171 | * @STATION_INFO_PLINK_STATE: @plink_state filled | 171 | * @STATION_INFO_PLINK_STATE: @plink_state filled |
172 | * @STATION_INFO_SIGNAL: @signal filled | ||
173 | * @STATION_INFO_TX_BITRATE: @tx_bitrate fields are filled | ||
174 | * (tx_bitrate, tx_bitrate_flags and tx_bitrate_mcs) | ||
172 | */ | 175 | */ |
173 | enum station_info_flags { | 176 | enum station_info_flags { |
174 | STATION_INFO_INACTIVE_TIME = 1<<0, | 177 | STATION_INFO_INACTIVE_TIME = 1<<0, |
@@ -177,6 +180,39 @@ enum station_info_flags { | |||
177 | STATION_INFO_LLID = 1<<3, | 180 | STATION_INFO_LLID = 1<<3, |
178 | STATION_INFO_PLID = 1<<4, | 181 | STATION_INFO_PLID = 1<<4, |
179 | STATION_INFO_PLINK_STATE = 1<<5, | 182 | STATION_INFO_PLINK_STATE = 1<<5, |
183 | STATION_INFO_SIGNAL = 1<<6, | ||
184 | STATION_INFO_TX_BITRATE = 1<<7, | ||
185 | }; | ||
186 | |||
187 | /** | ||
188 | * enum station_info_rate_flags - bitrate info flags | ||
189 | * | ||
190 | * Used by the driver to indicate the specific rate transmission | ||
191 | * type for 802.11n transmissions. | ||
192 | * | ||
193 | * @RATE_INFO_FLAGS_MCS: @tx_bitrate_mcs filled | ||
194 | * @RATE_INFO_FLAGS_40_MHZ_WIDTH: 40 Mhz width transmission | ||
195 | * @RATE_INFO_FLAGS_SHORT_GI: 400ns guard interval | ||
196 | */ | ||
197 | enum rate_info_flags { | ||
198 | RATE_INFO_FLAGS_MCS = 1<<0, | ||
199 | RATE_INFO_FLAGS_40_MHZ_WIDTH = 1<<1, | ||
200 | RATE_INFO_FLAGS_SHORT_GI = 1<<2, | ||
201 | }; | ||
202 | |||
203 | /** | ||
204 | * struct rate_info - bitrate information | ||
205 | * | ||
206 | * Information about a receiving or transmitting bitrate | ||
207 | * | ||
208 | * @flags: bitflag of flags from &enum rate_info_flags | ||
209 | * @mcs: mcs index if struct describes a 802.11n bitrate | ||
210 | * @legacy: bitrate in 100kbit/s for 802.11abg | ||
211 | */ | ||
212 | struct rate_info { | ||
213 | u8 flags; | ||
214 | u8 mcs; | ||
215 | u16 legacy; | ||
180 | }; | 216 | }; |
181 | 217 | ||
182 | /** | 218 | /** |
@@ -191,6 +227,8 @@ enum station_info_flags { | |||
191 | * @llid: mesh local link id | 227 | * @llid: mesh local link id |
192 | * @plid: mesh peer link id | 228 | * @plid: mesh peer link id |
193 | * @plink_state: mesh peer link state | 229 | * @plink_state: mesh peer link state |
230 | * @signal: signal strength of last received packet in dBm | ||
231 | * @txrate: current unicast bitrate to this station | ||
194 | */ | 232 | */ |
195 | struct station_info { | 233 | struct station_info { |
196 | u32 filled; | 234 | u32 filled; |
@@ -200,6 +238,8 @@ struct station_info { | |||
200 | u16 llid; | 238 | u16 llid; |
201 | u16 plid; | 239 | u16 plid; |
202 | u8 plink_state; | 240 | u8 plink_state; |
241 | s8 signal; | ||
242 | struct rate_info txrate; | ||
203 | }; | 243 | }; |
204 | 244 | ||
205 | /** | 245 | /** |
@@ -523,7 +563,7 @@ struct cfg80211_ops { | |||
523 | 563 | ||
524 | int (*set_channel)(struct wiphy *wiphy, | 564 | int (*set_channel)(struct wiphy *wiphy, |
525 | struct ieee80211_channel *chan, | 565 | struct ieee80211_channel *chan, |
526 | enum nl80211_sec_chan_offset); | 566 | enum nl80211_channel_type channel_type); |
527 | }; | 567 | }; |
528 | 568 | ||
529 | /* temporary wext handlers */ | 569 | /* temporary wext handlers */ |
diff --git a/include/net/dcbnl.h b/include/net/dcbnl.h index 91e0a3d7faf..775cfc8055b 100644 --- a/include/net/dcbnl.h +++ b/include/net/dcbnl.h | |||
@@ -26,7 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | struct dcbnl_rtnl_ops { | 27 | struct dcbnl_rtnl_ops { |
28 | u8 (*getstate)(struct net_device *); | 28 | u8 (*getstate)(struct net_device *); |
29 | void (*setstate)(struct net_device *, u8); | 29 | u8 (*setstate)(struct net_device *, u8); |
30 | void (*getpermhwaddr)(struct net_device *, u8 *); | 30 | void (*getpermhwaddr)(struct net_device *, u8 *); |
31 | void (*setpgtccfgtx)(struct net_device *, int, u8, u8, u8, u8); | 31 | void (*setpgtccfgtx)(struct net_device *, int, u8, u8, u8, u8); |
32 | void (*setpgbwgcfgtx)(struct net_device *, int, u8); | 32 | void (*setpgbwgcfgtx)(struct net_device *, int, u8); |
diff --git a/include/net/irda/irda_device.h b/include/net/irda/irda_device.h index 3025ae17ddb..94c852d47d0 100644 --- a/include/net/irda/irda_device.h +++ b/include/net/irda/irda_device.h | |||
@@ -135,9 +135,11 @@ struct dongle_reg { | |||
135 | 135 | ||
136 | /* | 136 | /* |
137 | * Per-packet information we need to hide inside sk_buff | 137 | * Per-packet information we need to hide inside sk_buff |
138 | * (must not exceed 48 bytes, check with struct sk_buff) | 138 | * (must not exceed 48 bytes, check with struct sk_buff) |
139 | * The default_qdisc_pad field is a temporary hack. | ||
139 | */ | 140 | */ |
140 | struct irda_skb_cb { | 141 | struct irda_skb_cb { |
142 | unsigned int default_qdisc_pad; | ||
141 | magic_t magic; /* Be sure that we can trust the information */ | 143 | magic_t magic; /* Be sure that we can trust the information */ |
142 | __u32 next_speed; /* The Speed to be set *after* this frame */ | 144 | __u32 next_speed; /* The Speed to be set *after* this frame */ |
143 | __u16 mtt; /* Minimum turn around time */ | 145 | __u16 mtt; /* Minimum turn around time */ |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 046ce692a90..b3bd00a9d99 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -165,14 +165,9 @@ enum ieee80211_bss_change { | |||
165 | 165 | ||
166 | /** | 166 | /** |
167 | * struct ieee80211_bss_ht_conf - BSS's changing HT configuration | 167 | * struct ieee80211_bss_ht_conf - BSS's changing HT configuration |
168 | * @secondary_channel_offset: secondary channel offset, uses | ||
169 | * %IEEE80211_HT_PARAM_CHA_SEC_ values | ||
170 | * @width_40_ok: indicates that 40 MHz bandwidth may be used for TX | ||
171 | * @operation_mode: HT operation mode (like in &struct ieee80211_ht_info) | 168 | * @operation_mode: HT operation mode (like in &struct ieee80211_ht_info) |
172 | */ | 169 | */ |
173 | struct ieee80211_bss_ht_conf { | 170 | struct ieee80211_bss_ht_conf { |
174 | u8 secondary_channel_offset; | ||
175 | bool width_40_ok; | ||
176 | u16 operation_mode; | 171 | u16 operation_mode; |
177 | }; | 172 | }; |
178 | 173 | ||
@@ -441,6 +436,9 @@ ieee80211_tx_info_clear_status(struct ieee80211_tx_info *info) | |||
441 | * is valid. This is useful in monitor mode and necessary for beacon frames | 436 | * is valid. This is useful in monitor mode and necessary for beacon frames |
442 | * to enable IBSS merging. | 437 | * to enable IBSS merging. |
443 | * @RX_FLAG_SHORTPRE: Short preamble was used for this frame | 438 | * @RX_FLAG_SHORTPRE: Short preamble was used for this frame |
439 | * @RX_FLAG_HT: HT MCS was used and rate_idx is MCS index | ||
440 | * @RX_FLAG_40MHZ: HT40 (40 MHz) was used | ||
441 | * @RX_FLAG_SHORT_GI: Short guard interval was used | ||
444 | */ | 442 | */ |
445 | enum mac80211_rx_flags { | 443 | enum mac80211_rx_flags { |
446 | RX_FLAG_MMIC_ERROR = 1<<0, | 444 | RX_FLAG_MMIC_ERROR = 1<<0, |
@@ -451,7 +449,10 @@ enum mac80211_rx_flags { | |||
451 | RX_FLAG_FAILED_FCS_CRC = 1<<5, | 449 | RX_FLAG_FAILED_FCS_CRC = 1<<5, |
452 | RX_FLAG_FAILED_PLCP_CRC = 1<<6, | 450 | RX_FLAG_FAILED_PLCP_CRC = 1<<6, |
453 | RX_FLAG_TSFT = 1<<7, | 451 | RX_FLAG_TSFT = 1<<7, |
454 | RX_FLAG_SHORTPRE = 1<<8 | 452 | RX_FLAG_SHORTPRE = 1<<8, |
453 | RX_FLAG_HT = 1<<9, | ||
454 | RX_FLAG_40MHZ = 1<<10, | ||
455 | RX_FLAG_SHORT_GI = 1<<11, | ||
455 | }; | 456 | }; |
456 | 457 | ||
457 | /** | 458 | /** |
@@ -471,7 +472,8 @@ enum mac80211_rx_flags { | |||
471 | * @noise: noise when receiving this frame, in dBm. | 472 | * @noise: noise when receiving this frame, in dBm. |
472 | * @qual: overall signal quality indication, in percent (0-100). | 473 | * @qual: overall signal quality indication, in percent (0-100). |
473 | * @antenna: antenna used | 474 | * @antenna: antenna used |
474 | * @rate_idx: index of data rate into band's supported rates | 475 | * @rate_idx: index of data rate into band's supported rates or MCS index if |
476 | * HT rates are use (RX_FLAG_HT) | ||
475 | * @flag: %RX_FLAG_* | 477 | * @flag: %RX_FLAG_* |
476 | */ | 478 | */ |
477 | struct ieee80211_rx_status { | 479 | struct ieee80211_rx_status { |
@@ -508,9 +510,7 @@ static inline int __deprecated __IEEE80211_CONF_SHORT_SLOT_TIME(void) | |||
508 | 510 | ||
509 | struct ieee80211_ht_conf { | 511 | struct ieee80211_ht_conf { |
510 | bool enabled; | 512 | bool enabled; |
511 | int sec_chan_offset; /* 0 = HT40 disabled; -1 = HT40 enabled, secondary | 513 | enum nl80211_channel_type channel_type; |
512 | * channel below primary; 1 = HT40 enabled, | ||
513 | * secondary channel above primary */ | ||
514 | }; | 514 | }; |
515 | 515 | ||
516 | /** | 516 | /** |
@@ -854,6 +854,11 @@ enum ieee80211_tkip_key_type { | |||
854 | * | 854 | * |
855 | * @IEEE80211_HW_AMPDU_AGGREGATION: | 855 | * @IEEE80211_HW_AMPDU_AGGREGATION: |
856 | * Hardware supports 11n A-MPDU aggregation. | 856 | * Hardware supports 11n A-MPDU aggregation. |
857 | * | ||
858 | * @IEEE80211_HW_NO_STACK_DYNAMIC_PS: | ||
859 | * Hardware which has dynamic power save support, meaning | ||
860 | * that power save is enabled in idle periods, and don't need support | ||
861 | * from stack. | ||
857 | */ | 862 | */ |
858 | enum ieee80211_hw_flags { | 863 | enum ieee80211_hw_flags { |
859 | IEEE80211_HW_RX_INCLUDES_FCS = 1<<1, | 864 | IEEE80211_HW_RX_INCLUDES_FCS = 1<<1, |
@@ -866,6 +871,7 @@ enum ieee80211_hw_flags { | |||
866 | IEEE80211_HW_NOISE_DBM = 1<<8, | 871 | IEEE80211_HW_NOISE_DBM = 1<<8, |
867 | IEEE80211_HW_SPECTRUM_MGMT = 1<<9, | 872 | IEEE80211_HW_SPECTRUM_MGMT = 1<<9, |
868 | IEEE80211_HW_AMPDU_AGGREGATION = 1<<10, | 873 | IEEE80211_HW_AMPDU_AGGREGATION = 1<<10, |
874 | IEEE80211_HW_NO_STACK_DYNAMIC_PS = 1<<11, | ||
869 | }; | 875 | }; |
870 | 876 | ||
871 | /** | 877 | /** |
diff --git a/include/net/netlink.h b/include/net/netlink.h index 46b7764f177..8a6150a3f4c 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h | |||
@@ -332,7 +332,7 @@ static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) | |||
332 | */ | 332 | */ |
333 | static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) | 333 | static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) |
334 | { | 334 | { |
335 | return (remaining >= sizeof(struct nlmsghdr) && | 335 | return (remaining >= (int) sizeof(struct nlmsghdr) && |
336 | nlh->nlmsg_len >= sizeof(struct nlmsghdr) && | 336 | nlh->nlmsg_len >= sizeof(struct nlmsghdr) && |
337 | nlh->nlmsg_len <= remaining); | 337 | nlh->nlmsg_len <= remaining); |
338 | } | 338 | } |
diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h index f205b10f0ab..b259fc5798f 100644 --- a/include/net/sctp/user.h +++ b/include/net/sctp/user.h | |||
@@ -118,6 +118,8 @@ enum sctp_optname { | |||
118 | #define SCTP_PEER_AUTH_CHUNKS SCTP_PEER_AUTH_CHUNKS | 118 | #define SCTP_PEER_AUTH_CHUNKS SCTP_PEER_AUTH_CHUNKS |
119 | SCTP_LOCAL_AUTH_CHUNKS, /* Read only */ | 119 | SCTP_LOCAL_AUTH_CHUNKS, /* Read only */ |
120 | #define SCTP_LOCAL_AUTH_CHUNKS SCTP_LOCAL_AUTH_CHUNKS | 120 | #define SCTP_LOCAL_AUTH_CHUNKS SCTP_LOCAL_AUTH_CHUNKS |
121 | SCTP_GET_ASSOC_NUMBER, /* Read only */ | ||
122 | #define SCTP_GET_ASSOC_NUMBER SCTP_GET_ASSOC_NUMBER | ||
121 | 123 | ||
122 | 124 | ||
123 | /* Internal Socket Options. Some of the sctp library functions are | 125 | /* Internal Socket Options. Some of the sctp library functions are |