aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 1322695beb52..b2b9d28cb4ab 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -413,7 +413,7 @@ struct station_parameters {
413 * @STATION_INFO_PLID: @plid filled 413 * @STATION_INFO_PLID: @plid filled
414 * @STATION_INFO_PLINK_STATE: @plink_state filled 414 * @STATION_INFO_PLINK_STATE: @plink_state filled
415 * @STATION_INFO_SIGNAL: @signal filled 415 * @STATION_INFO_SIGNAL: @signal filled
416 * @STATION_INFO_TX_BITRATE: @tx_bitrate fields are filled 416 * @STATION_INFO_TX_BITRATE: @txrate fields are filled
417 * (tx_bitrate, tx_bitrate_flags and tx_bitrate_mcs) 417 * (tx_bitrate, tx_bitrate_flags and tx_bitrate_mcs)
418 * @STATION_INFO_RX_PACKETS: @rx_packets filled 418 * @STATION_INFO_RX_PACKETS: @rx_packets filled
419 * @STATION_INFO_TX_PACKETS: @tx_packets filled 419 * @STATION_INFO_TX_PACKETS: @tx_packets filled
@@ -421,6 +421,7 @@ struct station_parameters {
421 * @STATION_INFO_TX_FAILED: @tx_failed filled 421 * @STATION_INFO_TX_FAILED: @tx_failed filled
422 * @STATION_INFO_RX_DROP_MISC: @rx_dropped_misc filled 422 * @STATION_INFO_RX_DROP_MISC: @rx_dropped_misc filled
423 * @STATION_INFO_SIGNAL_AVG: @signal_avg filled 423 * @STATION_INFO_SIGNAL_AVG: @signal_avg filled
424 * @STATION_INFO_RX_BITRATE: @rxrate fields are filled
424 */ 425 */
425enum station_info_flags { 426enum station_info_flags {
426 STATION_INFO_INACTIVE_TIME = 1<<0, 427 STATION_INFO_INACTIVE_TIME = 1<<0,
@@ -437,6 +438,7 @@ enum station_info_flags {
437 STATION_INFO_TX_FAILED = 1<<11, 438 STATION_INFO_TX_FAILED = 1<<11,
438 STATION_INFO_RX_DROP_MISC = 1<<12, 439 STATION_INFO_RX_DROP_MISC = 1<<12,
439 STATION_INFO_SIGNAL_AVG = 1<<13, 440 STATION_INFO_SIGNAL_AVG = 1<<13,
441 STATION_INFO_RX_BITRATE = 1<<14,
440}; 442};
441 443
442/** 444/**
@@ -484,7 +486,8 @@ struct rate_info {
484 * @plink_state: mesh peer link state 486 * @plink_state: mesh peer link state
485 * @signal: signal strength of last received packet in dBm 487 * @signal: signal strength of last received packet in dBm
486 * @signal_avg: signal strength average in dBm 488 * @signal_avg: signal strength average in dBm
487 * @txrate: current unicast bitrate to this station 489 * @txrate: current unicast bitrate from this station
490 * @rxrate: current unicast bitrate to this station
488 * @rx_packets: packets received from this station 491 * @rx_packets: packets received from this station
489 * @tx_packets: packets transmitted to this station 492 * @tx_packets: packets transmitted to this station
490 * @tx_retries: cumulative retry counts 493 * @tx_retries: cumulative retry counts
@@ -506,6 +509,7 @@ struct station_info {
506 s8 signal; 509 s8 signal;
507 s8 signal_avg; 510 s8 signal_avg;
508 struct rate_info txrate; 511 struct rate_info txrate;
512 struct rate_info rxrate;
509 u32 rx_packets; 513 u32 rx_packets;
510 u32 tx_packets; 514 u32 tx_packets;
511 u32 tx_retries; 515 u32 tx_retries;
@@ -1194,6 +1198,10 @@ struct cfg80211_pmksa {
1194 * (also see nl80211.h @NL80211_ATTR_WIPHY_ANTENNA_TX). 1198 * (also see nl80211.h @NL80211_ATTR_WIPHY_ANTENNA_TX).
1195 * 1199 *
1196 * @get_antenna: Get current antenna configuration from device (tx_ant, rx_ant). 1200 * @get_antenna: Get current antenna configuration from device (tx_ant, rx_ant).
1201 *
1202 * @set_ringparam: Set tx and rx ring sizes.
1203 *
1204 * @get_ringparam: Get tx and rx ring current and maximum sizes.
1197 */ 1205 */
1198struct cfg80211_ops { 1206struct cfg80211_ops {
1199 int (*suspend)(struct wiphy *wiphy); 1207 int (*suspend)(struct wiphy *wiphy);
@@ -1361,6 +1369,10 @@ struct cfg80211_ops {
1361 1369
1362 int (*set_antenna)(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant); 1370 int (*set_antenna)(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant);
1363 int (*get_antenna)(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant); 1371 int (*get_antenna)(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant);
1372
1373 int (*set_ringparam)(struct wiphy *wiphy, u32 tx, u32 rx);
1374 void (*get_ringparam)(struct wiphy *wiphy,
1375 u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max);
1364}; 1376};
1365 1377
1366/* 1378/*
@@ -1790,8 +1802,9 @@ static inline void *wdev_priv(struct wireless_dev *wdev)
1790/** 1802/**
1791 * ieee80211_channel_to_frequency - convert channel number to frequency 1803 * ieee80211_channel_to_frequency - convert channel number to frequency
1792 * @chan: channel number 1804 * @chan: channel number
1805 * @band: band, necessary due to channel number overlap
1793 */ 1806 */
1794extern int ieee80211_channel_to_frequency(int chan); 1807extern int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band);
1795 1808
1796/** 1809/**
1797 * ieee80211_frequency_to_channel - convert frequency to channel number 1810 * ieee80211_frequency_to_channel - convert frequency to channel number