iwn on a Lenovo 5100 - can't connect to wireless

2013-10-07 Thread Kurt Buff
I'm sure I'm making a silly mistake in the config somewhere, but I'm
working from these two pages:
http://www.freebsd.org/cgi/man.cgi?query=wpa_supplicant.confamp;sektion=5
and
http://www.freebsd.org/doc/handbook/network-wireless.html

Situation as follows: multiple WAPS running multiple SSIDs, on
multiple channels (1,6,11) but I'm only interested in one SSID. It's
WPA PSK.

The laptop is running 9.2-RELEASE and configured with the folllowing:

From /boot/loader.conf
if_iwn_load=YES
wlan_wep_load=YES
wlan_ccmp_load=YES
wlan_tkip_load=YES

From /etc/rc.conf (DHCP configuration doesn't work, either)
defaultrouter=192.168.15.1
wlans_iwn0=wlan0
ifconfig_wlan0=inet 192.168.15.50 netmask 255.255.255.0 ssid wireless

From /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
 ssid=wireless
 scan_ssid=1
 key_mgmt=WPA-PSK
 psk=longrandompassword
}

When I boot the machine, and run 'ifconfig wlan0', I see status: no carrier.

If I do 'ifconfig wlan0 scan', I get results, seeing the WAPs near me,
etc., but I can't ping anything.

When I manually run

'wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf',

I get connection, and can ping from a different console session, but
once I ^c out of wpa_supplicant, I lose the network.

Can anyone tell me what I'm missing on this?

Kurt
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: iwn on a Lenovo 5100 - can't connect to wireless

2013-10-07 Thread Kurt Buff
Knew it had to be something simple.

That was it, and thanks again for your help.

Kurt



On Mon, Oct 7, 2013 at 2:20 PM, Adrian Chadd adr...@freebsd.org wrote:
 Hi,

 Add WPA at the end if ifconfig_wlan0, not 'ssid wireless'. That way
 wpa_supplicant runs.

 For maximum correctness:

 ifconfig_wlan0=DHCP WPA



 -adiran

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org