Hi,
Just installed Freebsd 11 p9. Total noob. 2 days Googling wireless setup and now stuck here.
Modem Router: TP-Link wireless n ADSL2
Computer: LENOVO ideapad 310
On board wireless chipset: Intel dual band wireless AC 3165 Model 3165NGW
Driver: Freebsd iwm(4)
Upon boot:
I created a wpa_supplicant at /etc/wpa_supplicant.conf. As per handbook 30.3 Wireless Networking. Err, the code I got from elsewhere. Presumably when scanning, it will show 2 wifi 'hotspot/name/ssid' and you select which one to use.
The default wpa_supplicant script:
The system is using the default /etc/rc.d/wpa_supplicant script/file instead the one that I create at /etc/wpa_supplicant.conf
Thank you for advises.
Just installed Freebsd 11 p9. Total noob. 2 days Googling wireless setup and now stuck here.
Modem Router: TP-Link wireless n ADSL2
Computer: LENOVO ideapad 310
On board wireless chipset: Intel dual band wireless AC 3165 Model 3165NGW
Driver: Freebsd iwm(4)
Upon boot:
.
.
Starting wpa_supplicant.
/etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant
Starting dhclient.
wlan0: no link...................giving up
/etc/rc.d/dhclient: WARNING: failed to start dhclient
.
.
I created a wpa_supplicant at /etc/wpa_supplicant.conf. As per handbook 30.3 Wireless Networking. Err, the code I got from elsewhere. Presumably when scanning, it will show 2 wifi 'hotspot/name/ssid' and you select which one to use.
Code:
network={
priority=1
ssid=”wifi1″
psk=”one”
}
network={
priority=2
ssid=”wifi2″
psk=”two”
}
The default wpa_supplicant script:
Code:
#!/bin/sh
#
#$FreeBSD: releng/11.0/etc/rc.d/wpa_supplicant 298514 2016-04-23 16:10:54Z lme $
#
#PROVIDE: wpa_supplicant
#REQUIRE: mountcritremote
#KEYWORD: nojail nostart
. /etc/rc.subr
. /etc/network.subr
name="wpa_supplicant"
desc="WPA/802.11i Supplicant for wireless network devices"
rcvar=
ifn="$2"
if [ -z "$ifn" ]; then
return 1
fi
is_ndis_interface()
{
case 'systctl -n net.wlan.$(1#wlan.%parent 2>/dev/null' in ndis*) true ;;
*) false ;;
esac
}
if is_wired_interface $(ifn) ; then
driver="wired"
elif is_ndis_interface $(ifn) ; then
driver="ndis"
else
driver="bsd"
fi
load_rc_config $name
command=${wpa_supplicant_program}
conf_file=${wpa_supplicant_conf_file}
pidfile="/var/run/${name}/${ifn}.pid"
command_args="-B -i $ifn -c $conf_file -D $driver -P $pidfile"
required_files=$conf_file
required_modules="wlan_wep wlan_tkip wlan_ccmp"
run_rc_command "$1"
The system is using the default /etc/rc.d/wpa_supplicant script/file instead the one that I create at /etc/wpa_supplicant.conf
Thank you for advises.