OK. Getting back, for the moment, to my NDIS issue, I have been reviewing the files concerned.
1) First of all, I may have an error in my
rc.conf. Here is the code:
Code:
hostname="pharc2"
zfs_enable="YES"
kld_list="sysctlinfo"
moused_enable="YES"
ifconfig_alc0="DHCP"
wlans_ndis0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
wpa_supplicant_enable="YES"
linux_enable="YES"
dbus_enable="YES"
dsbdriverd_enable="YES"
lightdm_enable="YES"
cupsd_enable="YES"
samba_server_enable="YES"
I am suspicious of the line
. That doesn't look correct to me, but I don't yet know enough to tell.
2) Here is my
wpa_supplicant.conf
Code:
network={
ssid="SHAMROCK"
psk="Ab2thW3Aohc"
}
ifconfig wlan0 create wlandev ndis0
ifconfig wlan0 up
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D ndis0
dhclient wlan0
As one can see, the ifconf "create" command is contained there. However, when I then do
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -dd
, the output is as follows:
Code:
wpa_supplicant v2.6
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Line: 1 - start of a new network block
ssid - hexdump_ascii(len=8):
53 48 41 4d 52 4f 43 4b SHAMROCK
PSK (ASCII passphrase) - hexdump_ascii(len=11): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line 5: unknown global field 'ifconfig wlan0 create wlandev ndis0'.
Line 5: Invalid configuration line 'ifconfig wlan0 create wlandev ndis0'.
Line 6: unknown global field 'ifconfig wlan0 up'.
Line 6: Invalid configuration line 'ifconfig wlan0 up'.
Line 7: unknown global field 'wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D ndis0'.
Line 7: Invalid configuration line 'wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D ndis0'.
Line 8: unknown global field 'dhclient wlan0'.
Line 8: Invalid configuration line 'dhclient wlan0'.
Priority group 0
id=0 ssid='SHAMROCK'
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
Failed to add interface wlan0
: Cancelling scan request
: Cancelling authentication timeout
It seems obvious to me (perhaps I am wrong) that
ndis0 does not exist.
3) Lastly, here is my
bcm4313 executable in /etc/rc.d which does show up in the boot process as loading the drivers.
Code:
#!/bin/sh
# PROVIDE: bcm4313
# REQUIRE: NETWORKING
# BEFORE: LOGIN
# KEYWORD: nojail
. /etc/rc.subr
name="bcm4313"
start_cmd="${name}_start"
stop_cmd=":"
bcm4313_start()
{
echo "Loading Broadcom BCM4313 NDIS kernel modules."
kldload bcm43xx64.cat.ko
kldload bcmihvui64.dll.ko
kldload bcmihvsrv64.dll.ko
kldload bcmwl63a.sys.ko
}
load_rc_config $name
run_rc_command "$1"
This appears to be working correctly.
At this point, I am kinda stuck.
Ken Gordon