wlan problem. auto change channel
Kevin Oberman
oberman at es.net
Fri Dec 3 05:59:30 UTC 2010
> Date: Thu, 02 Dec 2010 11:41:46 +0700
> From: Veniamin Gvozdikov <g.veniamin at googlemail.com>
> Sender: owner-freebsd-current at freebsd.org
>
> Hi everybody!
> I have problem with my access point with freebsd after update of 7.3 to
> 8.1. I can't connect to AP. AP has auto change channel (
> http://fbsd.zlonet.ru/temp/wifi-problem.mov ). In the ifconfig not
> changes. How to fix it?
>
> FreeBSD server.zlonet.ru 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #4: Wed
> Dec 1 17:39:53 KRAT 2010
> admin at server.zlonet.ru:/mnt/freebsd/obj/mnt/freebsd/src/8/src/sys/zlonet_r81
> i386
>
> kernel
> device wlan # 802.11 support
> options IEEE80211_DEBUG # enable debug msgs
> options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
> options IEEE80211_SUPPORT_MESH # enable 802.11s draft support
> device wlan_wep # 802.11 WEP support
> device wlan_ccmp # 802.11 CCMP support
> device wlan_tkip # 802.11 TKIP support
> device wlan_amrr # AMRR transmit rate control algorithm
> device wlan_xauth
> device ath # Atheros pci/cardbus NIC's
> device ath_hal # pci/cardbus chip support
> options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors
> device ath_rate_sample # SampleRate tx rate control for ath
>
> rc.conf
>
> ifconfig_rl0="up"
> wlans_ath0="wlan0"
> create_args_wlan0="wlanmode ap mediaopt hostap mode 11g ssid zlonet.ru
> channel 6 country RU"
> ifconfig_wlan0="up"
> cloned_interfaces="bridge0"
> ifconfig_bridge0="inet 192.168.3.100 netmask 255.255.255.0 addm rl0 addm
> wlan0 up"
> hostapd_enable="YES"
>
> server# cat /etc/hostapd.conf
> interface=wlan0
> macaddr_acl=0
> #driver=bsd
> debug=1
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=wheel
> ssid=zlonet.ru
> hw_mode=g
> channel=6
> #auth_algs=2
> wpa=2
> wpa_passphrase=megapassword
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=CCMP
>
> ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
> ether 00:14:78:ee:d8:c1
> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
> status: running
> rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0
> mtu 1500
> options=8<VLAN_MTU>
> ether 00:e0:4c:7e:df:29
> media: Ethernet autoselect (100baseTX <full-duplex>)
> status: active
> bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500
> ether 16:69:b9:6d:3e:73
> inet 192.168.3.100 netmask 0xffffff00 broadcast 192.168.3.255
> id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
> maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
> root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
> member: wlan0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
> ifmaxaddr 0 port 11 priority 128 path cost 370370
> member: rl0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
> ifmaxaddr 0 port 4 priority 128 path cost 55
> wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
> 0 mtu 1500
> ether 00:14:78:ee:d8:c1
> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
> status: running
> ssid zlonet.ru channel 6 (2437 MHz 11g) bssid 00:14:78:ee:d8:c1
> regdomain NONE country RU indoor ecm authmode WPA2/802.11i
> privacy MIXED deftxkey 2 AES-CCM 2:128-bit AES-CCM 3:128-bit
> txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs
>
> pciconf -lv
> ath0 at pci0:0:8:0: class=0x020000 card=0x1052168c chip=0x001a168c
> rev=0x01 hdr=0x00
> vendor = 'Atheros Communications Inc.'
> device =
> 'http://cr.am/framed.php?url=http%3A%2F%2Fwww.tp%2Dlink.com%2Fsupport%2Fdownload.asp&ref=driverguide
> (Atheros AR5005G)'
> class = network
> subclass = ethernet
Clearly your interface is not getting set to hostap mode. In rc.conf I have:
create_args_wlan0="wlanmode hostap"
Of course, the mode is unrelated and I set the ssid in hostapd.conf. Not
sure if putting it into the create_args could cause a problem, but the
way you are trying to set the interface to hostap mode looks like a
clear problem.
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751
More information about the freebsd-current
mailing list