Getting wireless network up and running

Carmel carmel_ny at outlook.com
Tue Mar 15 11:38:57 UTC 2016


On Tue, 15 Mar 2016 07:05:13 -0400, Carmel stated:

> On Mon, 14 Mar 2016 23:50:33 +0100, Ben Woods stated:
> 
> > On 14 March 2016 at 20:17, Carmel <carmel_ny at outlook.com> wrote:
> >   
> > > I cannot seem to get my wireless network up and running.
> > >
> > > /boot/loader.conf
> > > if_bwn_load="YES"  # Broadcom BCM43xx IEEE 802.11 wireless NICs
> > >
> > > /etc/rc.conf
> > > ## Wireless
> > > wlans_bwn="wlan0"
> > > ifconfig_wlan0="WPA SYNCDHCP"
> > >
> > > /etc/wpa_supplicant.conf
> > > network={
> > >         ssid="Wireless-2g"
> > >         psk="Secret"
> > >         key_mgmt=WPA-PSK
> > > }
> > >
> > > I have run "service netif restart", but the network never comes
> > > up. I tried rebooting, but still nothing.
> > >
> > > If I append a "0" to bwn; ie, wlans_bwn0="wlan0", I get this
> > > output:
> > >
> > > dhclient[1485]: short write: wanted 20 go 0 bytes
> > > dhclient[1485]: exiting
> > >
> > > The system is then frozen solid, so I am forced to reboot into
> > > single user mode and remove the entry in "rc.conf".
> > >
> > > Can anyone tell me what the problem is?
> > >
> > > Thanks!
> > >
> > > --
> > > Carmel    
> > 
> > 
> > Hi Carmel,
> > 
> > To help us determine which model of WiFi card you have, can you
> > please reply to the list with the output of "pciconf -lv".
> > 
> > By the way, your rc.conf line should be:
> > wlans_bwn0="wlan0"
> > 
> > Refer to the FreeBSD handbook for more details:
> > https://www.freebsd.org/doc/handbook/network-wireless.html
> > 
> > Refer to the bwn(4) man page for details about the bwn drive and
> > which models it supports:
> > https://www.freebsd.org/cgi/man.cgi?bwn  
> 
> I think that this is what you want:
> 
> siba_bwn0 at pci0:2:1:0:   class=0x028000 card=0x100f1043
> chip=0x431814e4 rev=0x02 hdr=0x00 vendor     = 'Broadcom Corporation'
>     device     = 'BCM4318 [AirForce One 54g] 802.11g Wireless LAN
> Controller' class      = network
> 

Okay, I made another change. I got this from the boot-up messages:

Mar 14 15:16:44 scorpio1 kernel: siba_bwn0: <Broadcom BCM4318 802.11b/g Wireless> mem 0xfdefe000-0xfdefffff irq 16 at device 1.0 on pci2
Mar 14 15:16:44 scorpio1 kernel: bwn0 on siba_bwn0
Mar 14 15:16:44 scorpio1 kernel: bwn0: WLAN (chipid 0x4318 rev 9) PHY (analog 3 type 2 rev 7) RADIO (manuf 0x17f ver 0x2050 rev 8)
Mar 14 15:16:44 scorpio1 kernel: bwn0: DMA (32 bits)

So, I made the following changes to the rc.conf file:

## Wireless
siba_bwn0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"

Now the system does not hang, but it doesn't bring up the wireless
network either. This is the output from "service netif restart"

Stopping dhclient.
Stopping Network: lo0 em0.
lo0: flags=8048<LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	groups: lo 
em0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
	ether 00:1a:a0:89:ca:e4
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
Starting Network: lo0 em0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	groups: lo 
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
	ether 00:1a:a0:89:ca:e4
	inet6 fe80::21a:a0ff:fe89:cae4%em0 prefixlen 64 scopeid 0x1 
	inet6 2606:a000:b7c2:1700:21a:a0ff:fe89:cae4 prefixlen 64 autoconf 
	inet 192.168.0.9 netmask 0xffffff00 broadcast 192.168.0.255 
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active


-- 
Carmel


More information about the freebsd-questions mailing list