wifi学习网站

http://wireless.kernel.org/en/users/Download/stable/


 
https://community.freescale.com/thread/310277
 


0. Kernel configuration


CONFIG_WIRELESS_EXT=y
CONFIG_NET_SCHED=y


CONFIG_CFG80211=m
CONFIG_CFG80211_WEXT=y
CONFIG_WIRELESS_EXT_SYSFS=y
CONFIG_LIB80211=y
CONFIG_MAC80211=m


CONFIG_ATH_COMMON=m
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K=m
CONFIG_ATH9K_PCI=y
CONFIG_ATH9K_RATE_CONTROL=y




1. select drivers (compat-wireless-3.6.8-1)


./scripts/driver-select ath9k




2. comile driver


make ARCH=arm CROSS_COMPILE=arm-linux- KLIB=/opt/mx6/linux-3.0.35 KLIB_BUILD=/opt/mx6/linux-3.0.35


3. install modules


sudo ./install.sh




4. connection test


1) WEP128, ASCII key
ifconfig wlan0 up
iwconfig wlan0 essid "SoftAP-E1" key s:0123456789012




2) WAP/WPA2
You need to edit the /etc/wpa_supplicant.conf file as described in WPA_Supplicant and according to what you got from #Access point discovery. Then, issue this command:


wpa_supplicant -i wlan0 -B -c /etc/wpa_supplicant.conf
or
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf &


</etc/wpa_supplicant.conf>
ctrl_interface=/var/run/wpa_supplicant


network={
        ssid="SoftAP-E0"
        psk="1234567890"
        key_mgmt=WPA-PSK
        proto=WPA2
        pairwise=CCMP
        group=CCMP
}




3) ping test


route add default gw 192.168.0.1
ping ftp.kernel.org




4) speed test


<client>
iperf -c 10.11.12.232


<server>
iperf -s




<install.sh>


#!/bin/sh


MODPATH=/opt/mx6/rootfs/lib/modules/3.0.35-2310-gc27cb38/kernel
MODROOT=/opt/mx6/rootfs/lib/modules


cp -vrf ../net/rfkill/rfkill-regulator.ko $MODPATH/net/rfkill/rfkill-regulator.ko
cp -vrf ./net/mac80211/mac80211.ko $MODPATH/net/mac80211/
cp -vrf ./net/wireless/cfg80211.ko $MODPATH/net/wireless/
cp -vrf ./drivers/net/wireless/ath/ath.ko $MODPATH/drivers/net/wireless/ath/
cp -vrf ./drivers/net/wireless/ath/ath9k/ath9k.ko $MODPATH/drivers/net/wireless/ath/ath9k/
cp -vrf ./drivers/net/wireless/ath/ath9k/ath9k_htc.ko $MODPATH/drivers/net/wireless/ath/ath9k/
cp -vrf ./drivers/net/wireless/ath/ath9k/ath9k_hw.ko $MODPATH/drivers/net/wireless/ath/ath9k/
cp -vrf ./drivers/net/wireless/ath/ath9k/ath9k_common.ko $MODPATH/drivers/net/wireless/ath/ath9k/
mkdir -p $MODROOT/compat
cp -vrf ./compat/sch_fq_codel.ko $MODROOT/compat/
cp -vrf ./compat/sch_codel.ko $MODROOT/compat/
cp -vrf ./compat/compat.ko $MODROOT/compat/


 




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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值