struct ieee80211_hw 代表一个无线网卡硬件,里面包含该硬件的相关信息和状态.定义如下:
struct ieee80211_hw - hardware information and state
This structure contains the configuration and hardware information for an 802.11 PHY.
-
struct ieee80211_hw {
-
struct ieee80211_conf conf; //硬件设备的配置信息
-
struct wiphy *wiphy; //wireless hardware description.all supported bands (with channels, bitrates) are registered here.
-
const char *rate_control_algorithm; //硬件使用什么速率控制算法,必须在调用ieee80211_register_hw()前指定
-
void *priv; //ath9k的私有数据(struct softc)
-
unsigned long flags[BITS_TO_LONGS(NUM_IEEE80211_HW_FLAGS)];//硬件信息标志,表示硬件具备什么能力,如: IEEE80211_HW_AMPDU_AGGREGATION, 详见:enum ieee80211_hw_flags
-
unsigned int extra_tx_headroom; // 预留head区域of tranmit skb
-
unsigned int extra_beacon_tailroom; //tailroom to reserve in each beacon tx skb.Can be used by drivers to add extra IEs.
-
int vif_data_size; //结构体struct ieee80211_vif中 drv_priv data area的大小
-
int sta_data_size; //结构体struct ieee80211_sta中 drv_prive 数据区域的大小
-
int chanctx_data_size; //结构体struct ieee80211_chanctx_conf中 drv_prive 数据区域的大小
-
int txq_data_size; //结构体struct ieee80211_txq中 drv_prive 数据区域的大小
-
u16 queues; //硬件传输数据包的最大传输队列
-
u16 max_listen_interval;
-
s8 max_signal; //rx的最大信号
-
u8 max_rates;
-
u8 max_report_rates;
-
u8 max_rate_tries;
-
u8 max_rx_aggregation_subframes;
-
u8 max_tx_aggregation_subframes;
-
u8 max_tx_fragments;
-
u8 offchannel_tx_hw_queue;
-
u8 radiotap_mcs_details;
-
u16 radiotap_vht_details;
-
netdev_features_t netdev_features;
-
u8 uapsd_queues;
-
u8 uapsd_max_sp_len;
-
u8 n_cipher_schemes;
-
const struct ieee80211_cipher_scheme *cipher_schemes;
-
int txq_ac_max_pending;
-
};
阅读(2853) | 评论(0) | 转发(0) |