Hi everyone!
So I got this Raspberry Pi3 and decided to install Archlinux. I installed it multiple times due to various problems. The first time I made a mistake and installed the version for Raspberry Pi2. Although it had been working fine for a few hours, I had to erase the micro-sd to use for other stuff. I then installed the version for Pi3 since I'd noticed the first time I had installed the wrong version, but lately I found out that the wifi won't work because there is no 64-bit driver from Broadcom for this. Ok no problem, I just reinstalled the version for Pi2. It worked fine for like a month, and then suddenly something broke. I really can't understand what this is. When I look for the interface with
$this->bbcode_second_pass_code('', '
iw dev
phy#0
Interface wlan0
ifindex 3
wdev 0x1
addr ...
type managed
channel 1 (2412 MHz) ...
')
the interface is there, and also with
$this->bbcode_second_pass_code('', '
ip link:
1: lo <LOOPBACK,UP, LOWE_UP>....
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP>....
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether ... brd ff:ff:ff:ff:ff:ff
')
I can see it.
If then I try to start wpa_supplicant with
$this->bbcode_second_pass_code('', '
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/config_file.config
')
It returns:
$this->bbcode_second_pass_code('', '
Successfully initialized wpa_supplicant
[ 259.477288] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 259.477496] brcmfmac: power management disabled
')
And if I type
$this->bbcode_second_pass_code('', 'iw dev wlan0 link') it simply tells me it is not connected.
If then I try to shutdown the interface with $this->bbcode_second_pass_code('', 'ip link set wlan0 down') and $this->bbcode_second_pass_code('', 'wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/config_file.config') it gives some more warnings (?):
$this->bbcode_second_pass_code('', '
Successfully initialized wpa_supplicant
[ 586.635197] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 259.646928] brcmfmac: power management disabled
[ 259.646928] brcmfmac: bcrmf_cdf80211_add_iface: iface validation failed: err=-16
Failed to creare interface p2p-dev-wlan0: -16 (Device or resource busy)
nl80211: Faild to create a P2P Device interface p2p-dev-wlan0
P2P: Failed to enable P2P Device interface
')
The configuration file is correct since if I try to connect with a USB wifi adapter it works.
I'd like not to install everything another time, so if you have any idea (which is not buying an adapter) I'd really thank you.