I have an M8S+ with a built in network adapter running kszaq's build 8.0.1b
The built in adapter works.
In my case I wish to use a USB adapter instead, so I can add an external high gain aerial.
I have a TP-Link WN722N adapter (USB) which appears to work ok
- no errors in dmesg
- the appropriate drivers are loaded).
<code>
lsusb
Bus 002 Device 003: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n
</code>
<code>
/blsmod/b
Module Size Used by
hci_uart 21893 1
bnep 11028 2
btsdio 3186 0
dhd 711956 0
bluetooth 243676 25 bnep,btsdio,hci_uart
6lowpan_iphc 5791 1 bluetooth
8021q 18855 0
ath9k_htc 57701 0
ath9k_common 2008 1 ath9k_htc
ath9k_hw 388050 2 ath9k_common,ath9k_htc
ath 20156 3 ath9k_common,ath9k_htc,ath9k_hw
mac80211 376213 1 ath9k_htc
cfg80211 360926 4 ath,dhd,mac80211,ath9k_htc
wifi_dummy 806 0
mali 198264 5
amlvideodri 11586 0
videobuf_res 5394 1 amlvideodri
videobuf_core 16475 2 amlvideodri,videobuf_res
videodev 145853 1 amlvideodri
media 21002 1 videodev
aml_nftl_dev 82844 0
fbcon 37431 0
bitblit 4484 1 fbcon
softcursor 1208 1 bitblit
font 7287 1 fbcon
dwc_otg 230727 0
</code>
The boxes built-in adapter always seem to be wlan1 and the usb adapter is wlan0
I have a valid connection file at /storage/.cache/connman/xxxxxxx which does indeed successfully connect to the wifi network
I have tried -
- Blacklisting the wlan1 adapter in connman setup at /storage/.cache/connman/settings with
....[global]
....NetworkInterfaceBlacklist=vmnet,vboxnet,virbr,ifb,ve-,vb-,wlan1
- Using ifconfig to turn the interfaces off and on again with
....ifconfig wlan1 off
....ifconfig wlan0 off
- Disable and re-enabling wifi via connman
....connmanctl disable wifi
....connmanctl enable wifi
If I use the Kodi skin interface (Libreelec settings) to enable the adapter i sometimes see connections for the built in adapter (wlan1) and sometimes not
No matter what i do -
- connman will never successfully enable the USB adapter (wlan0)
- connman will always choose the built-in adapter (wlan1) and enable it
I don't see any errors in dmesg (I can post it if that will help)
It seems like I'm missing something ... but I don't know what. Extensive web searches haven't turned up anything helpful
Please can someone advise either (a) how I might achieve this or (b) where to look
thanks
======================================================
EDIT
======================================================
oops, it turns out that
- the process of blacklisting the inbuilt adapter has (mostly) worked.
- I had set a channel on the router which the USB adapter could not access on this machine ... which is odd since the same channel worked fine with the same adapter on a raspberry pi
- I periodically see stations for the inbuilt adapter (wlan1) in the list of available connections. I had to edit the originally created wlan1 connection and set it to manual so it would not automagically associate
Now working. Sorry for wasting time of those who looked at this