Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 2010 18:31:30 -0800 (PST)
From:      Eric Webster <ericwebstermail@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Can't get wifi working in 8.0, please help.
Message-ID:  <654424.23146.qm@web43143.mail.sp1.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hello, I recently upgraded from bsd 6.4 to bsd 8.0 release ( new install ) =
and I am having issues getting my wifi to work. Before the upgrade it worke=
d perfectly in 6.4.=20
I am a bit confused as I have read different things about this. The handboo=
k http://www.freebsd.org/doc/en/books/handbook/network-wireless.html#NETWOR=
K-WIRELESS-AP-BASIC
under basic settings says check to see if your device supports host based a=
p mode by doing=20

ifconfig wlan0 list caps

# ifconfig wlan0 list caps
drivercaps=3D2985cd01<STA,IBSS,HOSTAP,AHDEMO,SHSLOT,SHPREAMBLE,MONITOR,MBSS=
,WPA1,WPA2,WDS,BGSCAN>

Then it says the wireless device can now be put into AP mode by doing:

ifconfig wlan0 ssid freebsdap mode 11g mediaopt hostap inet 10.0.0.1 netmas=
k 255.255.255.0

Which returns:
ifconfig: inet: bad value

I read some place that you need to put inet before ssid so I tried it with =
the following:

# ifconfig wlan0 inet 10.0.0.1/24 ssid gangsta wepmode on weptxkey 1 wepkey=
 apasswordhere mode 11g mediaopt hostap

Which returns:
ifconfig: SIOCSIFMEDIA (media): Device not configured

If I try to configure it like it was in 6.4 I get another error:

ifconfig wlan0 ssid gangsta channel 8 wepmode on weptxkey 1 wepkey apasswor=
dhere mode 11g mediaopt hostap 10.0.0.1 netmask 255.255.255.0

Which returns:
ifconfig: SIOCSIFMEDIA (media): Device not configured

I know wep is not secure, I am just trying to get it working.=20

At start of the guide it tells you to configure the following in /boot/load=
er.conf which I did.

/boot/loader.conf

if_ral_load=3D"YES"
wlan_load=3D"YES"
wlan_scan_ap_load=3D"YES"
wlan_scan_sta_load=3D"YES"
wlan_wep_load=3D"YES"
wlan_ccmp_load=3D"YES"
wlan_Tkip_load=3D"YES"

When I run kldstat I see the if_ral is loaded. I don't know if its supposed=
 to show the other modules.

kldstat

Id Refs Address=A0=A0=A0 Size=A0=A0=A0=A0 Name
=A01=A0=A0=A0 9 0xc0400000 b22548=A0=A0 kernel
=A02=A0=A0=A0 1 0xc0f23000 13e4c=A0=A0=A0 if_ral.ko
=A03=A0=A0=A0 1 0xc357b000 35000=A0=A0=A0 ipl.ko


Here is rc.conf


check_quotas=3D"NO"
gateway_enable=3D"YES"
hostname=3D"router.foo.bar"
ibcs2_enable=3D"NO"
ifconfig_sk0=3D"DHCP"
ifconfig_xl0=3D"inet 192.168.0.1=A0 netmask 255.255.255.0"
wlans_ral0=3D"wlan0"
ifconfig_wlan0=3D"inet 10.0.0.1/24 ssid gangsta wepmode on weptxkey 1 wepke=
y apasswordhere mode 11g mediaopt hostap"
ipfilter_enable=3D"YES"
ipfilter_rules=3D"/etc/ipf.rules"
ipmon_enable=3D"YES"
ipmon_flags=3D"-Ds"
ipnat_enable=3D"YES"
ipnat_rules=3D"/etc/ipnat.rules"

Here is ifconfig -a

xl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
=A0=A0=A0 options=3D8<VLAN_MTU>
=A0=A0=A0 ether 00:60:97:7f:3e:6c
=A0=A0=A0 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
=A0=A0=A0 media: Ethernet autoselect (100baseTX <full-duplex>)
=A0=A0=A0 status: active
sk0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
=A0=A0=A0 options=3Db<RXCSUM,TXCSUM,VLAN_MTU>
=A0=A0=A0 ether 00:0c:41:e4:7e:83
=A0=A0=A0 inet x.x.x.x netmask 0xfffff800 broadcast 255.255.255.255
=A0=A0=A0 media: Ethernet autoselect (100baseTX <full-duplex>)
=A0=A0=A0 status: active
ral0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 229=
0
=A0=A0=A0 ether 00:14:bf:78:a2:a7
=A0=A0=A0 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
=A0=A0=A0 status: associated
plip0: flags=3D8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
=A0=A0=A0 options=3D3<RXCSUM,TXCSUM>
=A0=A0=A0 inet 127.0.0.1 netmask 0xff000000=20
wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
=A0=A0=A0 ether 00:14:bf:78:a2:a7
=A0=A0=A0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
=A0=A0=A0 status: no carrier
=A0=A0=A0 ssid gangsta channel 11 (2462 Mhz 11g)
=A0=A0=A0 country US authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit
=A0=A0=A0 txpower 0 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle =
250
=A0=A0=A0 roam:rssi 7 roam:rate 5 protmode CTS bintval 0

netstat -rn

Routing tables

Internet:
Destination=A0=A0=A0=A0=A0=A0=A0 Gateway=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 F=
lags=A0=A0=A0 Refs=A0=A0=A0=A0=A0 Use=A0 Netif Expire
default=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 x.x.x.x=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 UGS=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0 35=A0=A0=A0 sk0
x.x.x.x/21=A0=A0=A0=A0=A0=A0=A0=A0 link#2=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0 U=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0 sk0
x.x.x.x=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 link#2=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0 UHS=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0 lo0
127.0.0.1=A0=A0=A0=A0=A0=A0=A0=A0=A0 link#5=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 UH=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0 32=A0=A0=A0 lo0
192.168.0.0/24=A0=A0=A0=A0 link#1=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 U=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0 1=A0=A0=A0=A0=A0 568=A0=A0=A0 xl0
192.168.0.1=A0=A0=A0=A0=A0=A0=A0 link#1=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 UHS=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0 lo0


Many thanks in advance!!=20

Eric


=0A=0A=0A      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?654424.23146.qm>