Re: Setting up atheros (168c:001c) wireless NIC in FreeBSD

From: Ashish Shukla आशीष शुक्ल <wahjava.ml_at_gmail.com>
Date: Tue, 23 Sep 2008 10:07:11 +0530
Paul B Mahol writes:
> On 9/22/08, Ashish Shukla ************ ***************
> <wahjava.ml_at_gmail.com> wrote:
>> Hi all,
>> 
>> I've just built and installed recently checked out kernel and world. But
>> this time, wpa_supplicant is able to detect my access point and
>> associate it for a moment. But thats it.
>> 
>> ----8<----8<----
>> % ifconfig wlan0
>> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>> ether 00:1f:3a:1a:50:b3
>> inet6 fe80::21f:3aff:fe1a:50b3%wlan0 prefixlen 64 scopeid 0x4
>> media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g
>> status: associated
>> ssid 18-B-PARVATIYA channel 6 (2437 Mhz 11g) bssid 00:1e:2a:76:f4:60
>> regdomain 103 indoor ecm authmode WPA2/802.11i privacy ON
>> deftxkey UNDEF txpower 16 bmiss 7 scanvalid 450 bgscan bgscanintvl
>> 300
>> bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst
>> roaming MANUAL
----> 8---->8----
>> 
>> Though it shows associated but I'm not able to ping any other nodes on

> Why? You got some errors when using ping(1)?

> ifconfig output doesnt have inet, netmask and broadcast configured so
> pinging will not work anyway.

Sorry I didn't mentioned it there, but I've assigned one of the address
from the RFC1918 address range in use at my wireless network. 

----8<----8<----
abbe [~] monte-cristo% ifconfig
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:1f:3a:1a:50:b3
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: associated
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:1b:38:ea:5c:76
        inet 172.16.0.7 netmask 0xffffffe0 broadcast 172.16.0.31
        inet6 fe80::21b:38ff:feea:5c76%rl0 prefixlen 64 scopeid 0x2
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:1f:3a:1a:50:b3
        inet6 fe80::21f:3aff:fe1a:50b3%wlan0 prefixlen 64 scopeid 0x4
        media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g
        status: associated
        ssid 18-B-PARVATIYA channel 6 (2437 Mhz 11g) bssid 00:1e:2a:76:f4:60
        regdomain 103 indoor ecm authmode WPA2/802.11i privacy ON
        deftxkey UNDEF txpower 16 bmiss 7 scanvalid 450 bgscan bgscanintvl 300
        bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst
        roaming MANUAL
abbe [~] monte-cristo% sudo ifconfig rl0 172.16.0.7 -alias
abbe [~] monte-cristo% sudo ifconfig wlan0 172.16.0.7/27
abbe [~] monte-cristo% ping -c 4 172.16.0.2
PING 172.16.0.2 (172.16.0.2): 56 data bytes
ping: sendto: Operation not permitted
ping: sendto: Operation not permitted
ping: sendto: Operation not permitted
ping: sendto: Operation not permitted
^C
--- 172.16.0.2 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
abbe [~] monte-cristo% sudo pfctl -d
No ALTQ support in kernel
ALTQ related functions disabled
pf disabled
abbe [~] monte-cristo% ping -c 4 172.16.0.2
PING 172.16.0.2 (172.16.0.2): 56 data bytes

--- 172.16.0.2 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
abbe [~] monte-cristo% sudo ifconfig wlan0 172.16.0.7 -alias
abbe [~] monte-cristo% sudo ifconfig rl0 172.16.0.7/27
abbe [~] monte-cristo% ping -c 4 172.16.0.2
PING 172.16.0.2 (172.16.0.2): 56 data bytes
64 bytes from 172.16.0.2: icmp_seq=0 ttl=64 time=0.489 ms
64 bytes from 172.16.0.2: icmp_seq=1 ttl=64 time=0.161 ms
64 bytes from 172.16.0.2: icmp_seq=2 ttl=64 time=0.173 ms
64 bytes from 172.16.0.2: icmp_seq=3 ttl=64 time=0.180 ms

--- 172.16.0.2 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.161/0.251/0.489/0.138 ms
---->8---->8----

Both rl0 and wlan0 interfaces of my notebook connects to the same
wireless router (802.11 abg + 4 802.3 ports, used in a switch
fashion). And this notebook also has Gentoo GNU/Linux, where wireless
functionality works fine with HAL 0.10.5.6 and madwifi drivers.

Ashish
-- 
()  ascii ribbon campaign - against HTML e-mail
/\  www.asciiribbon.org   - against proprietary attachments
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
% dig +short cname cdac.in _at_::1
ms.gov.in

Received on Tue Sep 23 2008 - 02:37:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC