Can't get wifi working in 8.0, please help.

Eric Webster ericwebstermail at yahoo.com
Tue Jan 5 02:58:14 UTC 2010


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 worked perfectly in 6.4. 
I am a bit confused as I have read different things about this. The handbook http://www.freebsd.org/doc/en/books/handbook/network-wireless.html#NETWORK-WIRELESS-AP-BASIC
under basic settings says check to see if your device supports host based ap mode by doing 

ifconfig wlan0 list caps

# ifconfig wlan0 list caps
drivercaps=2985cd01<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 netmask 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 apasswordhere 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. 

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

/boot/loader.conf

if_ral_load="YES"
wlan_load="YES"
wlan_scan_ap_load="YES"
wlan_scan_sta_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_Tkip_load="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    Size     Name
 1    9 0xc0400000 b22548   kernel
 2    1 0xc0f23000 13e4c    if_ral.ko
 3    1 0xc357b000 35000    ipl.ko


Here is rc.conf


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

Here is ifconfig -a

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

netstat -rn

Routing tables

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


Many thanks in advance!! 

Eric





      


More information about the freebsd-questions mailing list