atheros无线驱动之:管理帧:认证帧

1:认证帧的组成
看看80211协议上面对帧的组成的说明如下:

先看看在认证模式为:open时,认证帧的格式:认证请求和认证响应。

响应帧

有上面的俩个帧的格式可以看出:使用的认证算法为:0,seqNum分别为:1和2.
##################################################################################
share模式,在看share模式之前先看看协议的“8.2.2.3 Shared Key authentication” 在此接使用了四个帧来完成WEP的认证过程。其中涉及到前面提到的seqNUM和challenge text。看看下面copy的过程。



第一包:


第二包:其中包含了challenge text 字段信息。

第三个数据包,此包已经加密:

AP对STA的进行解密,判断密钥是否正确。

其中seqNUM的定义如下:
enum {
    IEEE80211_AUTH_SHARED_REQUEST   = 1,
    IEEE80211_AUTH_SHARED_CHALLENGE = 2,
    IEEE80211_AUTH_SHARED_RESPONSE  = 3,
    IEEE80211_AUTH_SHARED_PASS      = 4,
};
在前面的文章中可以,在函数ieee80211_input()函数中会后就会对接受到的三大数据包格式进行处理。由于认证属于管理帧,故在函数:

ieee80211_recv_mgmt()----->ieee80211_recv_auth()------>ieee80211_mlme_recv_auth()---->mlme_auth_shared()----->ieee80211_send_auth()
mlme_recv_auth_ap()函数中:
ru
仔细看代码可以发现其中对如challenge text ,status code,长度是否为空进行判断 .




  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
Atheros AR8131 网卡驱动下载地址:(包括windows 驱动 和 Linux驱动) http://partner.atheros.com/Drivers.aspx Atheros AR9285无线网卡驱动,由开源项目MadWifi支持 在sourceforge搜索MadWifi可以找到: http://sourceforge.net/projects/madwifi/ 最新的Atheros无线网卡驱动主页: http://madwifi-project.org/ 对于新版本linux kernel 2.6.25之后(现在都是这个以上的内核),要用新的current版本。 http://snapshots.madwifi-project.org/madwifi-0.9.4-current.tar.gz In case you use kernel 2.6.25 or newer, you need to get this snapshot of the madwifi-0.9.4 branch instead of the v0.9.4 release! That snapshot is basically v0.9.4 plus compilation fixes for recent kernels. Atheros无线网卡驱动介绍: http://wireless.kernel.org/en/users/Drivers/Atheros AR9285无线网卡驱动 http://wireless.kernel.org/en/users/Drivers/ath9k Any distribution shipping a kernel >= 2.6.27 will have ath9k present but the ath9k driver on 2.6.32 is the oldest one recommended, anything older than that is completely unsupported. Below is a list of the minimal distribution requirements to either use ath9k from 2.6.27 or from compat-wireless, which lets you install newer drivers on older kernels. Ubuntu Intrepid (8.10) Fedora Core 10 openSUSE 11.1 Mandriva Linux 2009.0 (formally known as Mandrake Linux) ARCH Linux Gentoo Linux Red Flag Linux 7.0 (based on Fedora 10) RHEL5 2.6.18 kernel being tested When it went in ath9k was announced to have been merged into Linux-2.6.27-rc3 by Linus on Tue, 12 Aug 2008 19:33:16 -0700 (PDT), and consisted of 58.8% of the entire rc3 patch. Early distributions which picked it up OpenWrt became the first distribution to pick up ath9k and contribute to it.
支持列表如下: .Qualcomm / Atheros driver for Microsoft Windows XP (32/64bit) and Server 2003 (64bit): . Qualcomm Atheros 802.11 a/b/g/n Dualband Wireless Network Module, Qualcomm Atheros AR1111, AR1111 WB-EG, AR2427, AR5001X+, AR5002G, AR5002X, AR5004G, AR5004X, AR5005G, AR5005GS, AR5006, AR5006EG, AR5006EGS, AR5006EX, AR5006EXS, AR5006G, AR5006GS, AR5006X, AR5006XS, AR5007, AR5007EG, AR5007G, AR5008, AR5008WB-EG, AR5008X, AR5009, AR5B116, AR5B125, AR5B195, AR5B91, AR5B92, AR5B93, AR5B95, AR5B97, AR5BMD222, AR5BMD225, AR5BWB222, AR5BWB225, AR9002WB, AR9002WB-1NG, AR9002WB-2NG, AR9227, AR922X, AR9280, AR9281, AR9283, AR9285, AR9287, AR928X, AR9380, AR9382, AR938x, AR9462, AR946x, AR9485, AR9485WB-EG, AR956x, AR9580, Osprey, QCA9565 . 11a/b/g Wireless LAN Mini PCI Adapter II, 11a/b/g Wireless LAN Mini PCI Express Adapter, 11a/b/g/n Wireless LAN Adapter, 11a/b/g/n Wireless LAN Mini-PCI Express Adapter, 11b/g Wireless LAN Mini PCI Adapter, 11b/g Wireless LAN Mini PCI Express Adapter, 11b/g Wireless LAN Mini PCI Express Adapter II, 11b/g Wireless LAN Mini PCI Express Adapter III, 11b/g/n Wireless LAN Mini-PCI Express Adapter, 11b/g/n Wireless LAN Mini-PCI Express Adapter II, 11b/g/n Wireless LAN Mini-PCI Express Adapter III . Allied Telesyn AT-WCC201g Wireless Card Bus Adapter, Allied Telesyn AT-WCP201g Wireless PCI Adapter . D-Link DWA-520 Wireless 108G Desktop Adapter, D-Link DWA-542 RangeBooster N Desktop Adapter, D-Link DWA-547 RangeBooster N650 Desktop Adapter, D-Link DWA-552 XtremeN Desktop Adapter, D-Link DWA-556 Xtreme N PCIe Desktop Adapter, D-Link DWA-566 Wireless N 300 Dual Band PCIe Desktop Adapter, D-Link DWA-620 Wireless 108G Notebook Adapter, D-Link DWA-642 RangeBooster N Notebook Adapter, D-Link DWA-643 Xtreme N ExpressCard Notebook Adapter, D-Link DWA-645 RangeBooster N650 Notebook Adapter, D-Link DWA-652 XtremeN Notebook Adapter, D-Link WDA-1320 Wireless G Desktop Adapter, D-Link WDA-2320 RangeBooster G Desktop Adapter, D-Link WNA-1330 Wireless G Notebook Adapter, D-Link WNA-2330 RangeBooster G Notebook Adapter . Foxconn 802.11 a/b/g/n Wireless System Adaptor . Gigabyte GN-WI01GT (mini) PCI-E WLAN Card, Gigabyte GN-WI01HT (mini) PCI WLAN Card, Gigabyte GN-WI03N (mini) PCI WLAN Card, Gigabyte GN-WI06N (mini) PCI Express WLAN Card, Gigabyte GN-WI07HT (mini) PCI-E WLAN Card, Gigabyte GN-WIAG/GN-WPEAG (mini) PCI WLAN Card, Gigabyte GN-WIAH (mini) PCI WLAN Card, Gigabyte GN-WLMA102 Cardbus WLAN Card, Gigabyte GN-WM01GT Cardbus WLAN Card, Gigabyte GN-WM02N Express WLAN Card, Gigabyte GN-WMAG Cardbus WLAN Card, Gigabyte GN-WP01GT (mini) PCI WLAN Card, Gigabyte GN-WP02N PCI Express WLAN Card, Gigabyte GN-WS50G (mini) PCI-E WLAN Card, Gigabyte GN-WS53HN Wireless LAN Mini PCI Express Adapter . HP 802.11a/b/g Wireless Network Adapter, HP 802.11b/g Wireless Network Adapter . IEEE 802.11a/g Wireless LAN Adapter (A), IEEE 802.11a/g Wireless LAN Adapter (A) . I-O DATA WHG-AGDN/CB Wireless LAN Adapter . LAN-Express AS IEEE 802.11a/g miniPCI Adapter, LAN-Express AS IEEE 802.11g miniPCI Adapter, LAN-Express AS IEEE 802.11g PCI-E Adapter . Linksys Dual-Band Wireless A+G PCI Adapter . NETGEAR 108 Mbps Wireless PC Card WG511T, NETGEAR 108 Mbps Wireless PCI Adapter WG311T, NETGEAR Double 108 Mbps Wireless PC Card WG511U, NETGEAR RangeMax(TM) Wireless PC Card WPN511, NETGEAR WN711 RangeMax Wireless-N Expresscard Adapter, NETGEAR WPN311 RangeMax(TM) Wireless PCI Adapter . Option GTM67x PCIe WiFi Adapter . TP-LINK 150Mbps Wireless N Adapter, TP-LINK 300Mbps Wireless N Adapter, TP-LINK Wireless N Adapter . TRENDnet N600 Wireless Dual Band PCIe Adapter . VIA 802.11b/g/n PCIe Wireless Network Adapter . WNC CM9 Wireless LAN mini-PCI Network Adapter

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

家有工程师

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值