Hi,
I'm trying to use a Mini Wireless USB adapter TP-Link TL-WN823N on my PC. At first it didn't seem to be detected at all. After some changes to my configuration following a similar (successful) thread it is now detected (see conf files attached), and detects the two Wifis in my house correctly, but still cannot get an IP from either one :
dhclient says :
What is interesting is it seems wpa_supplicant make the interface "disappear" (confirmed with ifconfig) :
Here is ifconfig output after booting (I have seen ALTICE_XXXX in "ssid" at some point, but I can't remember when)

I'm trying to use a Mini Wireless USB adapter TP-Link TL-WN823N on my PC. At first it didn't seem to be detected at all. After some changes to my configuration following a similar (successful) thread it is now detected (see conf files attached), and detects the two Wifis in my house correctly, but still cannot get an IP from either one :
dhclient says :
wpa_supplicant (-Dbsd -c wpa_supplicant.conf -i wlan0) apparently fails to authenticate and times out (see messages.txt and daemon.txt, which contain the last 500 lines of both logs)wlan0: no link .............. giving up
What is interesting is it seems wpa_supplicant make the interface "disappear" (confirmed with ifconfig) :
After that, dhclient shows :Successfully initialized wpa_supplicant
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
ioctl[SIOCS80211, op=103, val=0, arg_len=128]: Network is down
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
Error reading packet, has device disappeared?
Error reading packet, has device disappeared?
wlan0: CTRL-EVENT-DSCP-POLICY clear_all
ioctl[SIOCS80211, op=25, val=0, arg_len=0]: Device not configured
wlan0: CTRL-EVENT-DSCP-POLICY clear_all
ioctl[SIOCS80211, op=95, val=208, arg_len=0]: Device not configured
ioctl[SIOCS80211, op=17, val=0, arg_len=0]: Device not configured
ioctl[SIOCS80211, op=26, val=0, arg_len=0]: Device not configured
ioctl[SIOCGIFFLAGS]: Device not configured
ioctl[SIOCS80211, op=17, val=1, arg_len=0]: Device not configured
ioctl[SIOCS80211, op=26, val=2, arg_len=0]: Device not configured
ioctl[SIOCS80211, op=16, val=2, arg_len=0]: Device not configured
wlan0: CTRL-EVENT-TERMINATING
I have had no luck with static IPs either (see commented lines in rc.conf)ifconfig: interface wlan0 does not exist
wlan0: not found
exiting.
Here is ifconfig output after booting (I have seen ALTICE_XXXX in "ssid" at some point, but I can't remember when)
I don't get what is the problem as my configuration seems correct on paper, and the dongle is detected and finds the Wifis now. Any idea would be welcomeem0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4e524bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,MEXTPG>
ether 00:22:4d:99:f6:8d
media: Ethernet autoselect
status: no carrier
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=0
ether 24:2f:d0:8a:32:44
groups: wlan
ssid "" channel 3 (2422 MHz 11g ht/20)
regdomain ETSI country FR authmode WPA1+WPA2/802.11i privacy ON
deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 protmode CTS ht20
ampdulimit 8k ampdudensity 16 shortgi -stbc -ldpc -uapsd wme
roaming MANUAL
parent interface: rtwn0
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>