Cannot connetc to my wi-fi network. Ar9271(tp-link wn721n)

Hi!
I have just installed openSUSE Leap KDE. But unfortunately I cannot connect to my wi-fi network. When I enter network settings through Yast all I get is ‘AR9271 802.11n; IP address Not configured’. I don’t know what to do from there.
It worked pretty well on Ubuntu.
I will be grateful for any help cause I really want to try openSUSE. Heard many good things about this os.

PS A guy with a similiar problem was able to solve the problem - https://forums.opensuse.org/showthread.php/450213-TPlink-WN422G-usb-wifi?highlight=Ar9271 - but he didn’t clarify how exactly he did it.

Thank you!

Are the “Network Settings” in YaST set to use “Network Manager” or “Wicked Service”?(“Global Options”; “General Network Settings”.)

[HR][/HR]For almost all user cases, it is better to set-up to use “Network Manager” to manage the WiFi connections.

  • If set-up to use “Network Manager” then, in YaST there is nothing much to do – the physical interfaces will be displayed but, they will not be configurable.
  • The only thing which needs to be set-up in YaST are the “Hostname/DNS” settings: “Hostname” and (default) “Domain Name”.

Then, it’s all done per user via the “Network Manager” icon in each user’s System Tray.

  • Wireless LAN name and password (usually stored in the user’s password wallet).

Read this:
https://forums.opensuse.org/showthread.php/391535-My-wireless-doesn-t-work-a-primer-on-what-I-should-do-next

Please also note the following extract from the URL <https://wikidevi.com/wiki/Atheros_AR9271&gt;:

Linux support

Built-in Linux kernel support:

Linux kernel module: ath9k_htc
in backports
Linux kernel version: v2.6.35
Linux kernel date: 2010-08-01
Firmware: Open Firmware
In Ubuntu, the firmware files are already included in the base distribution
In Debian:
    apt-get install firmware-atheros 
(in Debian the firmware-atheros package includes files: 
/lib/firmware/ar9271.fw /lib/firmware/htc_9271.fw 
Without these modprobe ath9k_htc does not create wlan0 device and dmesg shows: 
=&gt; Failed to load firmware )

Thank you for the helpful link.
I did the steps described. Here’s what I got:

dmsg | less

2.280949] usb 4-2: New USB device found, idVendor=0cf3, idProduct=9271
2.280952] usb 4-2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
2.280954] usb 4-2: Product: USB2.0 WLAN
2.280956] usb 4-2: Manufacturer: ATHEROS
2.280958] usb 4-2: SerialNumber: 12345

/usr/sbin/iwconfig

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID: off/any

      Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
      Retry short limit:7   RTS thr: off   Fragment thr: off
      Encryption key: off
      Power Management: off

lo no wireless extensions.

sudo /usr/sbin/iwlist scan

eth0 Interface doesn’t support scanning.

wlan0 Interface doesn’t support scanning : Network is down

lo Interface doesn’t support scanning.

I don’t know what to do from here on.

Does the directory ‘/lib/firmware/’ contain “ar9271.fw” and “htc_9271.fw”?
Does ‘lsmod’ indicate that these firmware files have been loaded into the kernel?

The firmware is in the directory.
I run lsmod and couldn’t find ar9271 and htc_9271.

I suppose I will have to load them into the kernel now.

I would appreciate some help on how to compile the firmware into the kernel cause I don’t have a clue.

Hi
No need to, your device is functioning as far as the driver is concerned, check it’s not blocked;


zypper in rfkill
rfkill list

With the ‘root’ user CLI: “# modprobe ar9271” and “# modprobe htc_9271”.

usb 4-2: New USB device found, idVendor=0cf3, idProduct=9271

This Chip is supported by the Kernel-Module ath9k_htc, not as mentioned:

With the ‘root’ user CLI: “# modprobe ar9271” and “# modprobe htc_9271”.

See:
https://cateee.net/lkddb/web-lkddb/ATH9K_HTC.html

Firmware is:

firmware:       ath9k_htc/htc_9271-1.4.0.fw
firmware:       ath9k_htc/htc_7010-1.4.0.fw

Firmware is in the package kernel-firmware:

rpm -qlp http://download.opensuse.org/update/leap/42.1/oss/noarch/kernel-firmware-20160503-3.1.noarch.rpm | grep ath9k
/lib/firmware/LICENCE.open-ath9k-htc-firmware
/lib/firmware/ath9k_htc
/lib/firmware/ath9k_htc/htc_7010-1.4.0.fw
/lib/firmware/ath9k_htc/htc_9271-1.4.0.fw
/usr/share/doc/packages/kernel-firmware/LICENCE.open-ath9k-htc-firmware

So if kernel-firmware is installed,

rfkill list all

lists nothing, a WLan Hardware Switch is not on the Computer, the Network Settings may be incorrect.

I tried doing that but I got:

modprobe ar9271.fw

modprobe: FATAL: Module ar9271.fw not found.

modprobe htc_9271.fw

modprobe: FATAL: Module htc_9271.fw not found.

Sauerland, thank you for your answer but I didn’t get most of what you have written.
What should I do at this stage? :expressionless:
http://www.librarified.net/wp-content/uploads/2013/03/i-have-no-idea-what-im-doing-dog.jpg

Guys! I don’t need help anymore. I have to install a different distro because of time reasons. I will try openSUSE some other time.
Thank you for help! Really appreciate that and sorry for taking your time.
Have a nice day!