Chinaunix首页 | 论坛 | 博客
  • 博客访问: 143012
  • 博文数量: 25
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 232
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-04 16:25
文章分类

全部博文(25)

文章存档

2019年(1)

2018年(1)

2017年(14)

2015年(9)

我的朋友

分类: LINUX

2017-11-09 16:01:00

struct ieee80211_hw 代表一个无线网卡硬件,里面包含该硬件的相关信息和状态.定义如下:
struct ieee80211_hw - hardware information and state
 This structure contains the configuration and hardware information for an 802.11 PHY.

点击(此处)折叠或打开

  1. struct ieee80211_hw {
  2.     struct ieee80211_conf conf;  //硬件设备的配置信息
  3.     struct wiphy *wiphy; //wireless hardware description.all supported bands (with channels, bitrates) are registered here.
  4.     const char *rate_control_algorithm; //硬件使用什么速率控制算法,必须在调用ieee80211_register_hw()前指定
  5.     void *priv; //ath9k的私有数据(struct softc)
  6.     unsigned long flags[BITS_TO_LONGS(NUM_IEEE80211_HW_FLAGS)];//硬件信息标志,表示硬件具备什么能力,如: IEEE80211_HW_AMPDU_AGGREGATION, 详见:enum ieee80211_hw_flags
  7.     unsigned int extra_tx_headroom; // 预留head区域of tranmit skb
  8.     unsigned int extra_beacon_tailroom; //tailroom to reserve in each beacon tx skb.Can be used by drivers to add extra IEs.
  9.     int vif_data_size; //结构体struct ieee80211_vif中 drv_priv data area的大小
  10.     int sta_data_size; //结构体struct ieee80211_sta中 drv_prive 数据区域的大小
  11.     int chanctx_data_size; //结构体struct ieee80211_chanctx_conf中 drv_prive 数据区域的大小
  12.     int txq_data_size; //结构体struct ieee80211_txq中 drv_prive 数据区域的大小
  13.     u16 queues; //硬件传输数据包的最大传输队列
  14.     u16 max_listen_interval;
  15.     s8 max_signal; //rx的最大信号
  16.     u8 max_rates;
  17.     u8 max_report_rates;
  18.     u8 max_rate_tries;
  19.     u8 max_rx_aggregation_subframes;
  20.     u8 max_tx_aggregation_subframes;
  21.     u8 max_tx_fragments;
  22.     u8 offchannel_tx_hw_queue;
  23.     u8 radiotap_mcs_details;
  24.     u16 radiotap_vht_details;
  25.     netdev_features_t netdev_features;
  26.     u8 uapsd_queues;
  27.     u8 uapsd_max_sp_len;
  28.     u8 n_cipher_schemes;
  29.     const struct ieee80211_cipher_scheme *cipher_schemes;
  30.     int txq_ac_max_pending;
  31. };


阅读(2774) | 评论(0) | 转发(0) |
0

上一篇:linux asprintf函数

下一篇:Linux mmap()函数

给主人留下些什么吧!~~