linux mac802.11,openwrt之wifi,以及mac80211

About mac80211

mac80211 is a framework which driver developers can use to write drivers for SoftMAC wireless devices.linux

SoftMAC devices allow for a finer control of the hardware, allowing for 802.11 frame management to be done in software for them, for both parsing and generation of 802.11 wireless frames. Most 802.11 devices today tend to be of this type, FullMAC devices have become scarce(仅仅).app

mac80211 implements the cfg80211 callbacks for SoftMAC devices, mac80211 then depends on cfg80211 for both registration to the networking subsystem and for configuration. Configuration is handled by cfg80211 both through nl80211 and wireless extensions.less

In mac80211 the MLME is done in the kernel for station mode (STA) and in userspace for AP mode (hostapd).dom

If you have new userspace utilities which support nl80211 you do not need wireless-extensions to support a mac80211 device.ide

mac80211是一种可让驱动开发人员使用去为SoftMAC无线设备写驱动程序ui

Supported features

Here is a quick review of the features supported in mac80211.this

IEEE 802.11abgn

IEEE 802.11d

Integration of work for the emerging 802.11s standard

Roaming using wpa_supplicant(恳求者) (802.11r as well). See Roaming TODO section for more detailsurl

Different types of interfaces, see supported wireless modes for details.spa

Vendor specific rate support

QoScode

all mac80211 drivers get monitor mode support

The mac80211 book

We are working on a set of documentation books, including one for mac80211, which are generated from comments in the various source files. You will find a more thorough review of mac80211 in the mac80211 book; the wiki pages can be used as a quick reference for mac80211 development. The book incorporates the kernel-doc docs below.

mac80211 driver API

The new mac80211 driver interface semantics(语义学) gives an overview of the expected and suggested driver behavior.

The API page lists notes about using the driver API.

The tracing page has notes on how to trace what mac80211 is asking the driver to do.

Sequence diagrams:

mac80211 drivers

mac80211 drivers are listed on the drivers table

mac80211 802.11d support

mac80211 supports 802.11d by processing country information element on beacons after association with an AP. You should still be able to associate to the AP in your region as cfg80211 allows users to set the regulatory domain from userspace before country information elements are parsed, this is expected to be set via wpa_supplicant(恳求者) upon initialization(初始化). We let cfg80211 parse the country information element for us and deal with reviewing regulatory enforcement for us. To review that please see cfg80211's regulatory support.

mac80211 rate control algorithms

Here is a list of current mac80211 rate control algorithms:

PID - PID (proportional-integral-derivative) rate control algorithm

minstrel - a rate control algorithm making use of multi-rate retries(重操做)

This information is no longer relevant as – since kernel version 2.6.32 – the master interface is no longer created.

mac80211 creates one master device and as many other secondary devices as requested to represent interfaces for the wireless card you have. mac80211 asks for the master device to appear as named aswmaster%d, and wlan%0 for the interfaces. udev may override the naming convention used though. wmaster%d is an internal master device used only by mac80211. It is currently visible only because it uses netdevice structure which we must allocate and use for QoS. It also serves as a holder for all interfaces we have, and represent the underlying hardware. For example, when TXing your wlan0 STA interface will actually add IEEE-802.11 header data to a frame with just Ethernet headers, and then pass it down to the master device for actual transmission using the low level drivers.

The wlan%d devices (interfaces) are the devices you would use to configure your wireless settings.

802.11n and WEP or TKIP

IEEE 802.11n does not allow TKIP/WEP as pairwise(成对发生的) ciphers(密码) in HT mode. If any of these ciphers are found to be used by the AP when a STA tries to associate to it:

WLAN_CIPHER_SUITE_WEP40

WLAN_CIPHER_SUITE_TKIP

WLAN_CIPHER_SUITE_WEP104

then 802.11n will be disabled and the STA will fall back to legacy mode of operation: 802.11a/b/g.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值