Unable to gain wireless access.

Help with setting up network cards, including WiFi cards.
User avatar
Weaver
Posts: 7
Joined: Tue Jan 12, 2021 8:57 am
Location: 'Straya

Unable to gain wireless access.

Post by Weaver »

sysctl net.wlan. devices delivers iwm0

There's a problem getting readouts here because this install is on a laptop and not this machine. If I type all night, I could get it all.

Code: Select all

cat /etc/rc.conf |grep wlan0
gives:

Code: Select all

wlans_"iwm0"
ifconfig_wlan0="WPA DHCP"
sudo ifconfig wlan0 up does nothing.

Code: Select all

So, sudo ifconfig | grep -B 3 802.11
provides:

Code: Select all

ssid "Fon WiFi" channel 3 (2422 MHz 11g) bssid a6:91:b1:60:b7:b8
regdomain FCC country US authmode OPEN privacy OFF txpower 30
bmiss 10 scanvalid 60 protmode CTS wme
media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g
Amongst which I can find little reference to drivers, and it looks more like one of the neighbour's channels than anything.
So, to check:

sudo ee /etc/rc.conf tells me the card is there, and little else:

Code: Select all

rc_parallel="NO"
sendmail_enable="NONE"
sendmail_submit_enable+"NO"
sendmail_outbound_enable+"NO"
sendmail_msp_queue_enable="NO"
devfs_system_ruleset=="devfsrules_common"
kld_list+"linux linux64 cuse /boot/modules/i915kms.ko"
ntpd_sync_em0="DHCP"
wlans_iwm0="wlan0="wlan0"
ifconfig_wlan0="WPA DHCP"
keymap="us.kbd"
hostname="telaman.net.au"
... other than the fact I screwed up the hostname.
So, I can't do anything in /etc/rc.conf.
Where should I go from here?
Thanks for any time and trouble.

Edited by ericbsd plain text trigger my COD.
User avatar
Weaver
Posts: 7
Joined: Tue Jan 12, 2021 8:57 am
Location: 'Straya

Re: Unable to gain wireless access.

Post by Weaver »

Further to:

/etc/wpa_supplicant.conf is configured thusly:

Code: Select all

network={
ssid="TPW4G_1A785F"
bssid=fc:2d:5e:a3:31:e4
key_mgmt=WPA_PSK
proto=WPA
psk="7JD48D6275"
}
...which should be all correct, but with sudo /etc/rc.d/netif restart, I get:

Code: Select all

Successfully initiated wpa_supplicant
Line 4: invalid key_mgmt "WPA_PSK'
Line 4: no key_mgmt values configured
Line 4: failed to parse key_mgmt 'WPA_PSK'
Line 7: failed to parse network block
Failed to read or parse configuration '/etc/wpa_supplicant.conf'
So, although I'm getting all this straight off the wiki, I think I have something screwed here, somehow.

Edited by ericbsd
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: Unable to gain wireless access.

Post by ericbsd »

I hope you did not put your real key online. If so? Replace that before your key gets used against you.

Judging on that error message you are using the wrong key management.

Could you give me the output of ifconfig wlan0 scan?
User avatar
Weaver
Posts: 7
Joined: Tue Jan 12, 2021 8:57 am
Location: 'Straya

Re: Unable to gain wireless access.

Post by Weaver »

Just the one thing:

Code: Select all

interface wlan0 does not exist
User avatar
Weaver
Posts: 7
Joined: Tue Jan 12, 2021 8:57 am
Location: 'Straya

Re: Unable to gain wireless access.

Post by Weaver »

'I hope you did not put your real key online. If so? Replace that before your key gets used against you.'

I wish them luck.
I live in a very, very small community on the edge of the desert in Australia.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: Unable to gain wireless access.

Post by ericbsd »

Weaver wrote: Tue Jan 12, 2021 10:28 am

Code: Select all

rc_parallel="NO"
sendmail_enable="NONE"
sendmail_submit_enable+"NO"
sendmail_outbound_enable+"NO"
sendmail_msp_queue_enable="NO"
devfs_system_ruleset=="devfsrules_common"
kld_list+"linux linux64 cuse /boot/modules/i915kms.ko"
ntpd_sync_em0="DHCP"
wlans_iwm0="wlan0="wlan0"
ifconfig_wlan0="WPA DHCP"
keymap="us.kbd"
hostname="telaman.net.au"
Oh, I see now.

This is wrong:

Code: Select all

wlans_iwm0="wlan0="wlan0"
it should be this:

Code: Select all

wlans_iwm0="wlan0"
User avatar
Weaver
Posts: 7
Joined: Tue Jan 12, 2021 8:57 am
Location: 'Straya

Re: Unable to gain wireless access.

Post by Weaver »

No, that was actually a typo.
It's right in the file, itself.
I've been working on this for a couple of nights now, and I think at about that stage my eyelids were resting on my knees.
I've got to retype everything out here, because I can't copy and paste from one machine to the other.
slawul
Posts: 8
Joined: Sun May 17, 2020 5:41 am

Re: Unable to gain wireless access.

Post by slawul »

I have this:

Code: Select all

key_mgmt=WPA-PSK
proto=RSN
Possibly: https://www.freebsd.org/cgi/man.cgi?wpa ... nt.conf(5)
User avatar
Weaver
Posts: 7
Joined: Tue Jan 12, 2021 8:57 am
Location: 'Straya

Re: Unable to gain wireless access.

Post by Weaver »

I run a small business, so have had to reinstall Debian unstable, which is what I usually run.
Non-free firmware is required to run the network card on that, so I think it may be the network card holding up the works here.
I've been wanting to get into the BSD aspect for a while now, however, and see Ghost as being an ideal gateway for that.
So I'll be back, once I've built a planned new box, which will be better for the purpose..
User avatar
Weaver
Posts: 7
Joined: Tue Jan 12, 2021 8:57 am
Location: 'Straya

Re: Unable to gain wireless access.

Post by Weaver »

Thanks to all for their efforts.
I look forward to paying back in kind.
Post Reply