Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RESOLVED] TP-Link Archer TU2 Plus (weird deivce name) #969

Open
TuxStory opened this issue Jun 6, 2022 · 5 comments
Open

[RESOLVED] TP-Link Archer TU2 Plus (weird deivce name) #969

TuxStory opened this issue Jun 6, 2022 · 5 comments

Comments

@TuxStory
Copy link

TuxStory commented Jun 6, 2022

#[Edit] Works With https://github.com/morrownr/8821au-20210708

I will close the issue but why isn't working anymore with your code ?

My adaptater is a TP-Link Archer TU2 Plus.
It was working fine until i saw the code was update and i wanted to reisntall it to see if performance will be beter.
I updated the local git files., uninstall everything and reinstall it.

$ sudo make dkms_install
Everything seems to be ok.

After a reboot, I can't scan wifi network,i can't do anything. + Strange device name ?!
And light is blinking!

nmcli device status
DEVICE TYPE STATE CONNECTION
\230H'`1\352 wifi indisponible --

ip -c a
3: �H'`1�: <BROADCAST,MULTICAST,UP,LOWER_UP>

OS: Linux Mint 20.3 x86_64
Kernel: 5.4.0-113-generic

Can you help me ?
Thanks

@TuxStory TuxStory closed this as completed Jun 6, 2022
@TuxStory TuxStory reopened this Jun 6, 2022
@TuxStory TuxStory changed the title TP-Link Archer TU2 Plus (weird deivce name) [RESOLVED] TP-Link Archer TU2 Plus (weird deivce name) Jun 6, 2022
@elfabx
Copy link

elfabx commented Jun 30, 2022

I could fix the same issue by a small change in include/drv_types_linux.h.

The macro definition:
#define dev_addr_set(netdev, ethdata) _rtw_memcpy(netdev, ethdata, ETH_ALEN)
should become:
#define dev_addr_set(netdev, ethdata) _rtw_memcpy(netdev->dev_addr, ethdata, ETH_ALEN)

Otherwise the uses of this macro are inconsistent with the lines that it is supposed to replace in #961 .

@2K-ZONE
Copy link

2K-ZONE commented Jul 6, 2022

Dear elfabx, thanks for providing the solution.
I stumbled upon this just yesterday, created an issue this morning and found this shortly afterwards.
Tested ok. I realised in my system the Wifi stick even had no MAC address, which is also fixed now.

@TuxStory
Copy link
Author

TuxStory commented Jul 7, 2022

Thanks, it works.

@priiduneemre
Copy link

priiduneemre commented Jul 28, 2022

Thanks a ton @elfabx.

Just encountered the exact same issue, and the fix proposed above works.

Shouldn't this be fixed in the repo?

@damien-swarm
Copy link

damien-swarm commented Aug 4, 2022

I'm on Ubuntu 18.04 / kernel version 5.4.0-96, using a TP-Link Archer TU2 Plus (id 2357:0120).

I didn't see the same symptoms as OP: I could scan WiFi networks, but not join them.

In journalctl -u NetworkManager I saw

Aug 03 19:07:32 mycomputer NetworkManager[51125]: <info>  [1659578852.6044] device (wlp0s20f0u10): supplicant interface state: inactive -> scanning
Aug 03 19:07:36 mycomputer NetworkManager[51125]: <info>  [1659578856.3057] device (wlp0s20f0u10): supplicant interface state: scanning -> associating
Aug 03 19:07:36 mycomputer NetworkManager[51125]: <info>  [1659578856.4145] device (wlp0s20f0u10): supplicant interface state: associating -> associated
Aug 03 19:07:36 mycomputer NetworkManager[51125]: <info>  [1659578856.4271] device (wlp0s20f0u10): supplicant interface state: associated -> 4-way handshake
Aug 03 19:07:39 mycomputer NetworkManager[51125]: <warn>  [1659578859.4305] sup-iface[0x56321fd6ea40,wlp0s20f0u10]: connection disconnected (reason 15)
Aug 03 19:07:39 mycomputer NetworkManager[51125]: <info>  [1659578859.4307] device (wlp0s20f0u10): supplicant interface state: 4-way handshake -> disconnected
Aug 03 19:07:39 mycomputer NetworkManager[51125]: <info>  [1659578859.4330] device (wlp0s20f0u10): Activation: (wifi) disconnected during association, asking for new key
Aug 03 19:07:39 mycomputer NetworkManager[51125]: <info>  [1659578859.4332] device (wlp0s20f0u10): state change: config -> need-auth (reason 'supplicant-disconnect', sys-iface-state: 'managed')
Aug 03 19:07:39 mycomputer NetworkManager[51125]: <info>  [1659578859.5345] device (wlp0s20f0u10): supplicant interface state: disconnected -> inactive

But applying the fix in #989 and rebuilding with make dkms_install fixed my problem for some reason, so thanks @elfabx !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants