Wifi setup help needed!

Hello!
I have spent 2 days trying to get wifi working - unsuccessfully.
It worked on Ghostbsd so I assume it should work on FreeBSD!

dhclient wlan0wlan0: no link .............. giving up
Code:
iwm0@pci0:3:0:0:        class=0x028000 rev=0x78 hdr=0x00 vendor=0x8086 device=0x24fd subvendor=0x8086 subdevice=0x9010   vendor     = 'Intel Corporation'   device     = 'Wireless 8265 / 8275'   class      = network
root@ghoul:/usr/home/anarcho #
Created wlan(4) interfaces: wlan0.
ifconfig: ioctl (SIOCAIFADDR): File exists
Starting wpa_supplicant.
Starting dhclient.wlan0: no link .............. giving up
/etc/rc.d/dhclient: WARNING: failed to start dhclient
rc.conf
Code:
ifconfig_wlan0="WPA SYNCDHCP powersave"
wlans_iwm0="wlan0"
if_iwm0_load="YES"
loader.conf
Code:
if_iwm_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
iwm8265fw_load="YES"
iwm8275fw_load="YES"
Code:
# /etc/wpa_supplicant.conf written by wifimgr(8)
ctrl_interface=/var/run/wpa_supplicant       ctrl_interface_group=wheel       eapol_version=2       ap_scan=1       fast_reauth=1
network={       
ssid="cr***"       
disabled=1       
key_mgmt=WPA-PSK      
 psk="********"
}
 
I am trying to configure the iwlwifi driver.

sysctl net.wlan.devices
net.wlan.devices: iwm0
root@ghoul:/usr/home/anarcho # devctl detach pci0:3:0:0
root@ghoul:/usr/home/anarcho # devctl set driver pci0:3:0:0 iwlwifi
root@ghoul:/usr/home/anarcho # sysctl net.wlan.devices
net.wlan.devices: iwlwifi0

but after reboot
sysctl net.wlan.devices
net.wlan.devices: iwm0
 
May I suggest installing networkmgr from ports? If you're used to using the GhostBSD GUI program you can install it on FreeBSD as well.


Either of these commands will install the program.
  • pkg install net-mgmt/networkmgr
  • pkg install networkmgr
 
For a NO Passwd wifi connection
/etc/rc.conf
Code:
hostname="FreeBeSssDeee.edo"
wlans_iwm0="wlan0"
wlans_ath0=wlan0
ifconfig_wlan0="SYNCDHCP"
sshd_enable="YES"
#update time on network
ntpdate_enable="YES"
ntpd_enable="YES"
remove that WPA and powersave(?) I never seen powersave on that line before but it wouldn't hurt to remove it for now I do suppose.

sudo cat /etc/wpa_supplicant.conf
Code:
network={
    ssid="Starbucks WiFi"
    scan_ssid=0
    key_mgmt=NONE
    priority=5
}
actual name of the ssid="porviders name"

restart service
Code:
sudo service netif restart


Stopping dhclient.
Waiting for PIDS: 42944.
Stopping Network: lo0 wlan0.
lo0: flags=8048<LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether e4:b3:18:45:3b:ed
    groups: wlan
    ssid "" channel 44 (5220 MHz 11a)
    regdomain FCC country US authmode OPEN privacy OFF txpower 17
    bmiss 10 mcastrate 6 mgmtrate 6 scanvalid 60 wme
    parent interface: iwm0
    media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Destroyed wlan(4) interfaces: wlan0.
ifconfig: SIOCIFCREATE2 (wlan0): Device not configured
Created wlan(4) interfaces: wlan0.
Starting dhclient.
wlan0: no link ..... got link
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 172.16.224.1
bound to 172.16.226.84 -- renewal in 1800 seconds.
Starting Network: lo0 wlan0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet 127.0.0.1 netmask 0xff000000
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether e4:b3:18:45:3b:ed
    inet 172.16.226.84 netmask 0xfffffc00 broadcast 172.16.227.255
    groups: wlan
    ssid "Starbucks WiFi" channel 44 (5220 MHz 11a) bssid e2:cb:ac:91:81:87
    regdomain FCC country US authmode OPEN privacy OFF txpower 17
    bmiss 10 mcastrate 6 mgmtrate 6 scanvalid 60 wme
    parent interface: iwm0
    media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11a
    status: associated
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

using a password.

 
May I suggest installing networkmgr from ports? If you're used to using the GhostBSD GUI program you can install it on FreeBSD as well.


Either of these commands will install the program.
  • pkg install net-mgmt/networkmgr
  • pkg install networkmgr
Yes, I have this installed.
With iwm loaded the wifi does not show in the interface.
With iwlwifi the wifi interface shows but does not see any devices.
 
For a NO Passwd wifi connection
/etc/rc.conf
Code:
hostname="FreeBeSssDeee.edo"
wlans_iwm0="wlan0"
wlans_ath0=wlan0
ifconfig_wlan0="SYNCDHCP"
sshd_enable="YES"
#update time on network
ntpdate_enable="YES"
ntpd_enable="YES"
remove that WPA and powersave(?) I never seen powersave on that line before but it wouldn't hurt to remove it for now I do suppose.

sudo cat /etc/wpa_supplicant.conf
Code:
network={
    ssid="Starbucks WiFi"
    scan_ssid=0
    key_mgmt=NONE
    priority=5
}
actual name of the ssid="porviders name"

restart service
Code:
sudo service netif restart


Stopping dhclient.
Waiting for PIDS: 42944.
Stopping Network: lo0 wlan0.
lo0: flags=8048<LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether e4:b3:18:45:3b:ed
    groups: wlan
    ssid "" channel 44 (5220 MHz 11a)
    regdomain FCC country US authmode OPEN privacy OFF txpower 17
    bmiss 10 mcastrate 6 mgmtrate 6 scanvalid 60 wme
    parent interface: iwm0
    media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Destroyed wlan(4) interfaces: wlan0.
ifconfig: SIOCIFCREATE2 (wlan0): Device not configured
Created wlan(4) interfaces: wlan0.
Starting dhclient.
wlan0: no link ..... got link
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 172.16.224.1
bound to 172.16.226.84 -- renewal in 1800 seconds.
Starting Network: lo0 wlan0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet 127.0.0.1 netmask 0xff000000
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether e4:b3:18:45:3b:ed
    inet 172.16.226.84 netmask 0xfffffc00 broadcast 172.16.227.255
    groups: wlan
    ssid "Starbucks WiFi" channel 44 (5220 MHz 11a) bssid e2:cb:ac:91:81:87
    regdomain FCC country US authmode OPEN privacy OFF txpower 17
    bmiss 10 mcastrate 6 mgmtrate 6 scanvalid 60 wme
    parent interface: iwm0
    media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11a
    status: associated
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

using a password.

Removing WPA and powersave has no effect.
 
I am trying to configure the iwlwifi driver.

sysctl net.wlan.devices
net.wlan.devices: iwm0
root@ghoul:/usr/home/anarcho # devctl detach pci0:3:0:0
root@ghoul:/usr/home/anarcho # devctl set driver pci0:3:0:0 iwlwifi
root@ghoul:/usr/home/anarcho # sysctl net.wlan.devices
net.wlan.devices: iwlwifi0

but after reboot
sysctl net.wlan.devices
net.wlan.devices: iwm0
adding if_iwlwifi to kld_list in rc.conf now has it seemingly load at boot.
sysctl net.wlan.devices
net.wlan.devices: iwlwifi0

Wifi has 'enable' appear in Networkmgr but clicking it has no effect.
 
adding if_iwlwifi to kld_list in rc.conf now has it seemingly load at boot.
sysctl net.wlan.devices
net.wlan.devices: iwlwifi0

Wifi has 'enable' appear in Networkmgr but clicking it has no effect.


With iwlwifi activated Freebsd seems to crash/shutdown.
 
I have a wifi card that causes system crashes and it has something to do with FPU usage. I had to use a dongle because I couldn't fix the issue.
 
I don't actually use reddit. But I just checked my crash logs and it had to do with an FPU access permissions error. Apparently it just goes crazy trying to do float point operations for some reason.
 
For a NO Passwd wifi connection
Bad idea. Even at home, I recommend something with a password. And no self-respecting hotspot allows connecting without a password - otherwise it's just target practice for script kiddies.

And, wifi on FreeBSD is a weak point. I tried lots of stuff, only to discover that /etc/wpa_supplicant.conf is a hit-and-miss... sometimes I have no syntax errors in editing, restarting, and everything else, but it's still a 50-50 chance that these chores won't work for the next hotspot.
 
Bad idea. Even at home, I recommend something with a password. And no self-respecting hotspot allows connecting without a password - otherwise it's just target practice for script kiddies.

And, wifi on FreeBSD is a weak point. I tried lots of stuff, only to discover that /etc/wpa_supplicant.conf is a hit-and-miss... sometimes I have no syntax errors in editing, restarting, and everything else, but it's still a 50-50 chance that these chores won't work for the next hotspot.
as in public wifi ,

here at Starbucks all we want is your money for an over priced a flavored water so we really don't care that much about security when using our wifi other then you going to web sights we don't want you looking at. So all you have to do is give us a name, first and last ( even a bogus name works) and an email address ( a valid one that does not really need to be your real name attached to it) and a zip code that actually takes letters and accepts them then allows you to use there wifi no password login is what I am referring to, and any other places like that.

I have discovered that removing the WPA it gives me a login IP quickly . even on installing the OS that skipping that one part I forget what it is asking you for just skip over that then scan for SSID and it gets them quickly. find the one you need, then finish, exit to shell on completion of install, go into rc.conf remove just that one part WPA reboot and you get a IP .

just have the proper wpa_ supplicant file entries for the SSID's

I used some piece of SW I forget the name but it writes the wpa Supplicant file for you, I don't wifi hop but it should be able to write them for you, just save the one that works o=under a different name then when you move to another wifi spot use it for the proper one for that spot then add it to a main file keep a back up, then using priority setting the higher the number that one take presdences over the others and it should do a process of elimination until it finds a match. that is how I would have made it to work.

I uninstall that app and forgot what it was called after I got what I needed.
 
Back
Top