LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't connect

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
mariogds9

LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't connect

Post by mariogds9 »

Hi guys I'm getting trouble with the TL-WN722N, I'm able to "see" my wifi network but unable to connect even if I put the password. The system try to connect but unfortunally the green led doesn't blink. Of course Itested it on Windows 8.1 and the Dongle works.I had a look through ./wirless.info txt and seems somthing related to the country code ( I'm in Italy) but I'm not sure.
Could you help me?

Code: Select all

########## wireless info START ##########

Report from: 16 Mar 2015 09:14 CET +0100

Booted last: 16 Mar 2015 08:32 CET +0100

Script from: 20 Sep 2014 23:04 UTC +0000

##### release ###########################

Distributor ID:	LinuxMint
Description:	Linux Mint 17.1 Rebecca
Release:	17.1
Codename:	rebecca

##### kernel ############################

Linux 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:30:01 UTC 2014 i686 i686 i686 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################

default

##### lspci #############################

00:1b.0 Ethernet controller [0200]: ULi Electronics Inc. ULi 1689,1573 integrated ethernet. [10b9:5263] (rev 50)
	Subsystem: ASUSTeK Computer Inc. Device [1043:816a]
	Kernel driver in use: uli526x

##### lsusb #############################

Bus 001 Device 002: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

##### PCMCIA card info ##################

##### rfkill ############################

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

##### lsmod #############################

ath9k_htc              90038  0 
ath9k_common           13359  1 ath9k_htc
ath9k_hw              438205  2 ath9k_common,ath9k_htc
ath                    23922  3 ath9k_common,ath9k_htc,ath9k_hw
mac80211              546051  1 ath9k_htc
cfg80211              409394  3 ath,mac80211,ath9k_htc

##### interfaces ########################

auto lo
iface lo inet loopback

##### ifconfig ##########################

eth0      Link encap:Ethernet  HWaddr <MAC 'eth0' [IF]>  
          inet addr:192.168.1.16  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::215:f2ff:fe3b:9c4e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10305 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9334 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8583883 (8.5 MB)  TX bytes:1110578 (1.1 MB)

wlan0     Link encap:Ethernet  HWaddr <MAC 'wlan0' [IF]>  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

##### iwconfig ##########################

lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          

##### route #############################

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

##### resolv.conf #######################

nameserver 127.0.1.1
search homenet.telecomitalia.it

##### nm-tool ###########################

NetworkManager Tool

State: connected (global)

- Device: wlan0 ----------------------------------------------------------------
  Type:              802.11 WiFi
  Driver:            ath9k_htc
  State:             disconnected
  Default:           no
  HW Address:        <MAC 'wlan0' [IF]>

  Capabilities:

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points 
    Vodafone-10549375: Infra, <MAC 'Vodafone-10549375' [AN1]>, Freq 2412 MHz, Rate 54 Mb/s, Strength 35 WPA2
    Alice-75073604:  Infra, <MAC 'Alice-75073604' [AN2]>, Freq 2462 MHz, Rate 54 Mb/s, Strength 30 WPA WPA2
    Alice-73696837:  Infra, <MAC 'Alice-73696837' [AN3]>, Freq 2437 MHz, Rate 54 Mb/s, Strength 67 WPA WPA2

- Device: eth0  [Connessione via cavo 1] ---------------------------------------
  Type:              Wired
  Driver:            uli526x
  State:             connected
  Default:           yes
  HW Address:        <MAC 'eth0' [IF]>

  Capabilities:
    Carrier Detect:  yes
    Speed:           100 Mb/s

  Wired Properties
    Carrier:         on

  IPv4 Settings:
    Address:         192.168.1.16
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.1

    DNS:             192.168.1.1

##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

##### NetworkManager.conf ###############

[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/Alice-73696837]] (600 root)
[connection] id=Alice-73696837 | type=802-11-wireless
[802-11-wireless] ssid=Alice-73696837 | mac-address=<MAC 'wlan0' [IF]>
[ipv4] method=auto
[ipv6] method=auto

##### iw reg get ########################

Region: Europe/Rome (based on set time zone)

country IT:
	(2402 - 2482 @ 40), (N/A, 20)
	(5170 - 5250 @ 40), (N/A, 20)
	(5250 - 5330 @ 40), (N/A, 20), DFS
	(5490 - 5710 @ 40), (N/A, 27), DFS
	(57240 - 65880 @ 2160), (N/A, 40), NO-OUTDOOR

##### iwlist channels ###################

lo        no frequency information.

eth0      no frequency information.

wlan0     13 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz

##### iwlist scan #######################

wlan0     Interface doesn't support scanning : Device or resource busy

lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

##### module infos ######################

[ath9k_htc]
filename:       /lib/modules/3.13.0-37-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
firmware:       htc_9271.fw
firmware:       htc_7010.fw
description:    Atheros driver 802.11n HTC based wireless devices
license:        Dual BSD/GPL
author:         Atheros Communications
srcversion:     76D0CC269ACAA11EA825B93
depends:        ath9k_hw,ath9k_common,mac80211,ath,cfg80211
intree:         Y
vermagic:       3.13.0-37-generic SMP mod_unload modversions 686 
signer:         Magrathea: Glacier signing key
sig_key:        7A:CF:8E:D9:48:D7:7B:6A:80:F2:4F:59:D5:D8:ED:03:87:AA:B4:26
sig_hashalgo:   sha512
parm:           debug:Debugging mask (uint)
parm:           nohwcrypt:Disable hardware encryption (int)
parm:           btcoex_enable:Enable wifi-BT coexistence (int)
parm:           ps_enable:Enable WLAN PowerSave (int)

[ath9k_common]
filename:       /lib/modules/3.13.0-37-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko
license:        Dual BSD/GPL
description:    Shared library for Atheros wireless 802.11n LAN cards.
author:         Atheros Communications
srcversion:     696B00A6C59713EC0966997
depends:        ath,ath9k_hw
intree:         Y
vermagic:       3.13.0-37-generic SMP mod_unload modversions 686 
signer:         Magrathea: Glacier signing key
sig_key:        7A:CF:8E:D9:48:D7:7B:6A:80:F2:4F:59:D5:D8:ED:03:87:AA:B4:26
sig_hashalgo:   sha512

[ath9k_hw]
filename:       /lib/modules/3.13.0-37-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
license:        Dual BSD/GPL
description:    Support for Atheros 802.11n wireless LAN cards.
author:         Atheros Communications
srcversion:     4809F3842A0542CD6B556D3
depends:        ath
intree:         Y
vermagic:       3.13.0-37-generic SMP mod_unload modversions 686 
signer:         Magrathea: Glacier signing key
sig_key:        7A:CF:8E:D9:48:D7:7B:6A:80:F2:4F:59:D5:D8:ED:03:87:AA:B4:26
sig_hashalgo:   sha512

[ath]
filename:       /lib/modules/3.13.0-37-generic/kernel/drivers/net/wireless/ath/ath.ko
license:        Dual BSD/GPL
description:    Shared library for Atheros wireless LAN cards.
author:         Atheros Communications
srcversion:     88A67C5359B02C5A710AFCF
depends:        cfg80211
intree:         Y
vermagic:       3.13.0-37-generic SMP mod_unload modversions 686 
signer:         Magrathea: Glacier signing key
sig_key:        7A:CF:8E:D9:48:D7:7B:6A:80:F2:4F:59:D5:D8:ED:03:87:AA:B4:26
sig_hashalgo:   sha512

[mac80211]
filename:       /lib/modules/3.13.0-37-generic/kernel/net/mac80211/mac80211.ko
license:        GPL
description:    IEEE 802.11 subsystem
srcversion:     B822641624778B987844F6F
depends:        cfg80211
intree:         Y
vermagic:       3.13.0-37-generic SMP mod_unload modversions 686 
signer:         Magrathea: Glacier signing key
sig_key:        7A:CF:8E:D9:48:D7:7B:6A:80:F2:4F:59:D5:D8:ED:03:87:AA:B4:26
sig_hashalgo:   sha512
parm:           max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm:           max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm:           beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm:           probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm:           ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)

[cfg80211]
filename:       /lib/modules/3.13.0-37-generic/kernel/net/wireless/cfg80211.ko
description:    wireless configuration support
license:        GPL
author:         Johannes Berg
srcversion:     C2478077E22138832B71659
depends:        
intree:         Y
vermagic:       3.13.0-37-generic SMP mod_unload modversions 686 
signer:         Magrathea: Glacier signing key
sig_key:        7A:CF:8E:D9:48:D7:7B:6A:80:F2:4F:59:D5:D8:ED:03:87:AA:B4:26
sig_hashalgo:   sha512
parm:           ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm:           cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[ath9k_htc]
btcoex_enable: 0
nohwcrypt: 0
ps_enable: 0

[mac80211]
beacon_loss_count: 7
ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5
probe_wait_ms: 500

[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

##### /etc/modules ######################

lp

##### modprobe options ##################

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en

##### rc.local ##########################

exit 0

##### pm-utils ##########################

##### udev rules ########################

[/etc/udev/rules.d/70-persistent-net.rules]
# PCI device 0x10b9:0x5263 (uli526x)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'eth0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# USB device 0x:0x (ath9k_htc)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'wlan0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

##### dmesg #############################

[  203.426725] usb 1-4: ath9k_htc: Firmware htc_9271.fw requested
[  203.430267] usbcore: registered new interface driver ath9k_htc
[  204.880056] usb 1-4: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[  205.684054] ath9k_htc 1-4:1.0: ath9k_htc: HTC initialized with 33 credits
[  221.384061] ath9k_htc 1-4:1.0: ath9k_htc: FW Version: 1.3
[  221.384071] ath: EEPROM regdomain: 0x809c
[  221.384074] ath: EEPROM indicates we should expect a country code
[  221.384077] ath: doing EEPROM country->regdmn map search
[  221.384079] ath: country maps to regdmn code: 0x52
[  221.384082] ath: Country alpha2 being used: CN
[  221.384084] ath: Regpair used: 0x52
[  258.732288] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready (repeated 2 times)

########## wireless info END ############
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29612
Joined: Wed Jul 06, 2011 3:58 am

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by xenopeek »

Google search on the chip, "0cf3:9271 Atheros Communications, Inc. AR9271 802.11n", doesn't turn up anything promising. It may be the quicker route to sell it and buy another USB dongle. For example this one is reported to work perfectly: http://community.linuxmint.com/hardware/view/21041. You can search the hardware database for more reviews.
Image
mariogds9

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by mariogds9 »

Thank you for your reply, if I haven't other ways to solve the problem I'll buy a new one.
What do you think about Asus N13 ?
User avatar
Pjotr
Level 24
Level 24
Posts: 20129
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by Pjotr »

This chipset should work out of the box in Linux Mint 17.x.... I found this, maybe it'll help in this case as well:
http://askubuntu.com/a/410754

Key quote:
In the output I've found that TL-WN722N support channels from 1 to 11. Try to guess what is the channel of my network...yes, it is channel 13.

Solution found, problem solved.

We can close this topic :-D
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
mariogds9

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by mariogds9 »

Thank you for your tip, but the TL-WN823N is reported to work on Quiana release. I tested TL-WN722N on Maya before buying.
There is a tool to extract driver and FW from Maya and install on Rebecca?
Last edited by mariogds9 on Sat Mar 21, 2015 11:37 am, edited 2 times in total.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by JeremyB »

You might be correct on the country code part but I am not sure why it is using CN for the code so

Code: Select all

sudo gedit /etc/default/crda
and check the last line, if you are in Italy make the last line be

Code: Select all

REGDOMAIN=IT
Save and exit program, then

Code: Select all

echo "options cfg80211 ieee80211_regdom=IT" | sudo tee /etc/modprobe.d/cfg802.conf
Reboot and

Code: Select all

dmesg | grep alpha2
Also check wifi router settings to be sure encryption is WPA2 only with no TKIP
mariogds9

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by mariogds9 »

Here are the code you suggested, the key code is : WPA-PSK TKIP-AES 256 bit

Code: Select all

home@home-System-Product-Name ~ $ sudo gedit /etc/default/crda
[sudo] password for home: 
home@home-System-Product-Name ~ $ echo "options cfg80211 ieee80211_regdom=IT" | sudo tee /etc/modprobe.d/cfg802.conf
options cfg80211 ieee80211_regdom=IT
home@home-System-Product-Name ~ $ dmesg | grep alpha2
[   36.809165] ath: Country alpha2 being used: CN
home@home-System-Product-Name ~ $ 
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by JeremyB »

mariogds9 wrote:Here are the code you suggested, the key code is : WPA-PSK TKIP-AES 256 bit

Code: Select all

home@home-System-Product-Name ~ $ sudo gedit /etc/default/crda
[sudo] password for home: 
home@home-System-Product-Name ~ $ echo "options cfg80211 ieee80211_regdom=IT" | sudo tee /etc/modprobe.d/cfg802.conf
options cfg80211 ieee80211_regdom=IT
home@home-System-Product-Name ~ $ dmesg | grep alpha2
[   36.809165] ath: Country alpha2 being used: CN
home@home-System-Product-Name ~ $ 
Remove the TKIP option from the router and reboot the computer
mariogds9

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by mariogds9 »

I removed TKIP but it doesn't work.I do not understand why on Maya it works without problems
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by JeremyB »

Can you run

Code: Select all

./wireless_script
and post the new results
mariogds9

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by mariogds9 »

here the results

Code: Select all

########## wireless info START ##########

Report from: 21 Mar 2015 21:43 CET +0100

Booted last: 21 Mar 2015 21:28 CET +0100

Script from: 20 Sep 2014 23:04 UTC +0000

##### release ###########################

Distributor ID:	LinuxMint
Description:	Linux Mint 17.1 Rebecca
Release:	17.1
Codename:	rebecca

##### kernel ############################

Linux 3.13.0-46-generic #79-Ubuntu SMP Tue Mar 10 20:08:14 UTC 2015 i686 i686 i686 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################

default

##### lspci #############################

00:1b.0 Ethernet controller [0200]: ULi Electronics Inc. ULi 1689,1573 integrated ethernet. [10b9:5263] (rev 50)
	Subsystem: ASUSTeK Computer Inc. Device [1043:816a]
	Kernel driver in use: uli526x

##### lsusb #############################

Bus 001 Device 002: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

##### PCMCIA card info ##################

##### rfkill ############################

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

##### lsmod #############################

ath9k                  86133  0 
ath9k_htc              52045  0 
ath9k_common           20781  2 ath9k,ath9k_htc
ath9k_hw              405068  3 ath9k_common,ath9k,ath9k_htc
ath                    24182  4 ath9k_common,ath9k,ath9k_htc,ath9k_hw
mac80211              486135  2 ath9k,ath9k_htc
cfg80211              430577  5 ath,ath9k_common,ath9k,mac80211,ath9k_htc
compat                 13617  5 cfg80211,ath9k_common,ath9k,mac80211,ath9k_htc

##### interfaces ########################

auto lo
iface lo inet loopback

##### ifconfig ##########################

eth0      Link encap:Ethernet  HWaddr <MAC 'eth0' [IF]>  
          inet addr:192.168.1.16  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2207 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1864 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1071089 (1.0 MB)  TX bytes:210466 (210.4 KB)

wlan0     Link encap:Ethernet  HWaddr <MAC 'wlan0' [IF]>  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

##### iwconfig ##########################

lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          

##### route #############################

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

##### resolv.conf #######################

nameserver 127.0.1.1
search homenet.telecomitalia.it

##### nm-tool ###########################

NetworkManager Tool

State: connected (global)

- Device: wlan0 ----------------------------------------------------------------
  Type:              802.11 WiFi
  Driver:            ath9k_htc
  State:             disconnected
  Default:           no
  HW Address:        <MAC 'wlan0' [IF]>

  Capabilities:

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points 
    Vodafone-10549375: Infra, <MAC 'Vodafone-10549375' [AN1]>, Freq 2412 MHz, Rate 54 Mb/s, Strength 44 WPA2
    Alice-75073604:  Infra, <MAC 'Alice-75073604' [AN2]>, Freq 2462 MHz, Rate 54 Mb/s, Strength 27 WPA WPA2
    Alice-73696837:  Infra, <MAC 'Alice-73696837' [AN3]>, Freq 2462 MHz, Rate 54 Mb/s, Strength 100 WPA WPA2
    Alice-36969176:  Infra, <MAC 'Alice-36969176' [AN4]>, Freq 2437 MHz, Rate 54 Mb/s, Strength 45 WPA WPA2
    Alice-38116673:  Infra, <MAC 'Alice-38116673' [AN5]>, Freq 2462 MHz, Rate 54 Mb/s, Strength 15 WPA WPA2
    dlink:           Infra, <MAC 'dlink' [AN6]>, Freq 2412 MHz, Rate 54 Mb/s, Strength 20

- Device: eth0  [Connessione via cavo 1] ---------------------------------------
  Type:              Wired
  Driver:            uli526x
  State:             connected
  Default:           yes
  HW Address:        <MAC 'eth0' [IF]>

  Capabilities:
    Carrier Detect:  yes
    Speed:           100 Mb/s

  Wired Properties
    Carrier:         on

  IPv4 Settings:
    Address:         192.168.1.16
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.1

    DNS:             192.168.1.1

##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

##### NetworkManager.conf ###############

[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/Connessione Alice-73696837 automatica]] (600 root)
[connection] id=Connessione Alice-73696837 automatica | type=802-11-wireless
[802-11-wireless] ssid=Alice-73696837 | mac-address=<MAC 'wlan0' [IF]>
[ipv4] method=auto
[ipv6] method=ignore

##### iw reg get ########################

Region: Europe/Rome (based on set time zone)

country 00:
	(2402 - 2472 @ 40), (3, 20)
	(2457 - 2482 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
	(2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
	(5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
	(5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS

##### iwlist channels ###################

lo        no frequency information.

eth0      no frequency information.

wlan0     13 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz

##### iwlist scan #######################

wlan0     Interface doesn't support scanning : Device or resource busy

lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

##### module infos ######################

[ath9k]
filename:       /lib/modules/3.13.0-46-generic/updates/drivers/net/wireless/ath/ath9k/ath9k.ko
version:        backported from Linux (v3.16-0-g19583ca) using backports v3.16-1-0-g87df966
license:        Dual BSD/GPL
description:    Support for Atheros 802.11n wireless LAN cards.
author:         Atheros Communications
srcversion:     798BAB7A0EAD1200B7BE8A7
depends:        ath9k_hw,mac80211,ath9k_common,compat,cfg80211,ath
vermagic:       3.13.0-46-generic SMP mod_unload modversions 686 
parm:           debug:Debugging mask (uint)
parm:           nohwcrypt:Disable hardware encryption (int)
parm:           blink:Enable LED blink on activity (int)
parm:           btcoex_enable:Enable wifi-BT coexistence (int)
parm:           bt_ant_diversity:Enable WLAN/BT RX antenna diversity (int)
parm:           ps_enable:Enable WLAN PowerSave (int)
parm:           use_chanctx:Enable channel context for concurrency (int)

[ath9k_htc]
filename:       /lib/modules/3.13.0-46-generic/updates/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
firmware:       htc_9271.fw
firmware:       htc_7010.fw
version:        backported from Linux (v3.16-0-g19583ca) using backports v3.16-1-0-g87df966
description:    Atheros driver 802.11n HTC based wireless devices
license:        Dual BSD/GPL
author:         Atheros Communications
srcversion:     FFCDD1D8EB43BE1E97AA7B4
depends:        ath9k_hw,ath9k_common,compat,mac80211,ath,cfg80211
vermagic:       3.13.0-46-generic SMP mod_unload modversions 686 
parm:           debug:Debugging mask (uint)
parm:           nohwcrypt:Disable hardware encryption (int)
parm:           btcoex_enable:Enable wifi-BT coexistence (int)
parm:           ps_enable:Enable WLAN PowerSave (int)

[ath9k_common]
filename:       /lib/modules/3.13.0-46-generic/updates/drivers/net/wireless/ath/ath9k/ath9k_common.ko
version:        backported from Linux (v3.16-0-g19583ca) using backports v3.16-1-0-g87df966
license:        Dual BSD/GPL
description:    Shared library for Atheros wireless 802.11n LAN cards.
author:         Atheros Communications
srcversion:     B180166FC3B0E36D0FFA723
depends:        compat,cfg80211,ath9k_hw,ath
vermagic:       3.13.0-46-generic SMP mod_unload modversions 686 

[ath9k_hw]
filename:       /lib/modules/3.13.0-46-generic/updates/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
license:        Dual BSD/GPL
description:    Support for Atheros 802.11n wireless LAN cards.
author:         Atheros Communications
srcversion:     6EB746FE7537350C2A5ABDF
depends:        ath
vermagic:       3.13.0-46-generic SMP mod_unload modversions 686 

[ath]
filename:       /lib/modules/3.13.0-46-generic/updates/drivers/net/wireless/ath/ath.ko
license:        Dual BSD/GPL
description:    Shared library for Atheros wireless LAN cards.
author:         Atheros Communications
srcversion:     C9BEC05AD7C1101B3411B15
depends:        cfg80211
vermagic:       3.13.0-46-generic SMP mod_unload modversions 686 

[mac80211]
filename:       /lib/modules/3.13.0-46-generic/updates/net/mac80211/mac80211.ko
license:        GPL
description:    IEEE 802.11 subsystem
version:        backported from Linux (v3.16-0-g19583ca) using backports v3.16-1-0-g87df966
srcversion:     498475E7EA38A1D570E3DDA
depends:        cfg80211,compat
vermagic:       3.13.0-46-generic SMP mod_unload modversions 686 
parm:           max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm:           max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm:           beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm:           probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm:           ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)

[cfg80211]
filename:       /lib/modules/3.13.0-46-generic/updates/net/wireless/cfg80211.ko
version:        backported from Linux (v3.16-0-g19583ca) using backports v3.16-1-0-g87df966
description:    wireless configuration support
license:        GPL
author:         Johannes Berg
srcversion:     45258D27D2689FBA5E42894
depends:        compat
vermagic:       3.13.0-46-generic SMP mod_unload modversions 686 
parm:           ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm:           cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[ath9k]
blink: 0
bt_ant_diversity: 0
btcoex_enable: 0
nohwcrypt: 0
ps_enable: 0
use_chanctx: 0

[ath9k_htc]
btcoex_enable: 0
nohwcrypt: 0
ps_enable: 0

[mac80211]
beacon_loss_count: 7
ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5
probe_wait_ms: 500

[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: IT

##### /etc/modules ######################

lp

ath9k_htc
ath9k
ath9k_htc

##### modprobe options ##################

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/cfg802.conf]
options cfg80211 ieee80211_regdom=IT

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en

##### rc.local ##########################

echo "0cf3 9271" | tee /sys/bus/usb/drivers/ath9k_htc/new_id

exit 0

##### pm-utils ##########################

##### udev rules ########################

[/etc/udev/rules.d/70-persistent-net.rules]
# PCI device 0x10b9:0x5263 (uli526x)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'eth0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# USB device 0x:0x (ath9k_htc)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'wlan0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

##### dmesg #############################

########## wireless info END ############
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by JeremyB »

You have been busy.

Code: Select all

sudo gedit /etc/modules
and delete ath9k and ath9k_htc from the file, then save and exit
Then

Code: Select all

sudo gedit /etc/rc.local
and delete the

Code: Select all

echo "0cf3 9271" | tee /sys/bus/usb/drivers/ath9k_htc/new_id
Save and exit
Then

Code: Select all

sudo iw reg set IT
If you think it is an issue with the kernel modules, I would have suggested the newest stable backports as backports from 3.16 are likely a few steps behind the 3.13.0-46 kernel modules due to how Ubuntu patches their kernels.

If you want to try the latest stable backports

Code: Select all

sudo apt-get install linux-headers-generic build-essential

Code: Select all

wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.19-rc1/backports-3.19-rc1-1.tar.gz

Code: Select all

tar -zxvf backports-3.19-rc1-1.tar.gz

Code: Select all

cd backports-3.19-rc1-1

Code: Select all

make defconfig-ath9k

Code: Select all

make

Code: Select all

sudo make install

Code: Select all

echo "options ath9k nohwcrypt=1 blink=1" | sudo tee /etc/modprobe.d/ath9k.conf
Reboot

I can't tell if you are still using TKIP from the wireless script info but it still shows WPA being used on your router which isn't terrible. After the reboot, unplug ethernet cable and see if you can connect. If you still have issues trying to connect post

Code: Select all

dmesg | tail -15
mariogds9

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by mariogds9 »

I tryed to change the region but I see always CN end IPv6 even if I ignored into the network configuration.

Code: Select all

home@home-System-Product-Name ~ $ dmesg | tail -15
[   87.055818] cfg80211: Calling CRDA for country: CN
[  124.315466] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  124.316486] cfg80211: Calling CRDA for country: CN
[  124.317681] cfg80211: Current regulatory domain intersected:
[  124.317692] cfg80211:  DFS Master region: unset
[  124.317695] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[  124.317700] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[  124.317704] cfg80211:   (57240000 KHz - 59400000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[  124.317708] cfg80211:   (59400000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[  124.317711] cfg80211:   (63720000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[  143.331790] systemd-hostnamed[2146]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[  197.152388] uli526x 0000:00:1b.0 eth0: NIC Link is Up 100 Mbps Full duplex
[  197.152452] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  209.455551] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[  233.674993] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:dc:0b:1a:5a:67:45:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2 
home@home-System-Product-Name ~ $ 
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by JeremyB »

mariogds9 wrote:I tryed to change the region but I see always CN end IPv6 even if I ignored into the network configuration.

Code: Select all

home@home-System-Product-Name ~ $ dmesg | tail -15
[   87.055818] cfg80211: Calling CRDA for country: CN
[  124.315466] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  124.316486] cfg80211: Calling CRDA for country: CN
[  124.317681] cfg80211: Current regulatory domain intersected:
[  124.317692] cfg80211:  DFS Master region: unset
[  124.317695] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[  124.317700] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[  124.317704] cfg80211:   (57240000 KHz - 59400000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[  124.317708] cfg80211:   (59400000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[  124.317711] cfg80211:   (63720000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 2800 mBm), (N/A)
[  143.331790] systemd-hostnamed[2146]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[  197.152388] uli526x 0000:00:1b.0 eth0: NIC Link is Up 100 Mbps Full duplex
[  197.152452] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  209.455551] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[  233.674993] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:dc:0b:1a:5a:67:45:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2 
home@home-System-Product-Name ~ $ 
See if there is any improvement after disabling UFW
mariogds9

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by mariogds9 »

UFW disabled any improvement. If it's a worth I can post the maya wireless script so that you can understand the differences.
At a first glance it seems the firmware doesn't inizialise the wlan0.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by JeremyB »

mariogds9 wrote:UFW disabled any improvement. If it's a worth I can post the maya wireless script so that you can understand the differences.
At a first glance it seems the firmware doesn't inizialise the wlan0.
I know there is a bug with some USB ports, so boot up without the wifi dongle plugged in and plug it in after everything loads and the desktop appears, then post

Code: Select all

dmesg | tail -30
If you want to post the script results from Maya, it could be helpful
mariogds9

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by mariogds9 »

Mint 17.1

Code: Select all

home@home-System-Product-Name ~ $ dmesg | tail -30
[   21.964992] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   21.965000] Bluetooth: BNEP filters: protocol multicast
[   21.965017] Bluetooth: BNEP socket layer initialized
[   22.014716] Bluetooth: RFCOMM TTY layer initialized
[   22.014740] Bluetooth: RFCOMM socket layer initialized
[   22.014762] Bluetooth: RFCOMM ver 1.11
[   22.356942] device-mapper: multipath: version 1.6.0 loaded
[   25.672692] autoconfig: line_outs=1 (0x1b/0x0/0x0/0x0/0x0) type:line
[   25.672701]    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   25.672704]    hp_outs=1 (0x1a/0x0/0x0/0x0/0x0)
[   25.672706]    mono: mono_out=0x0
[   25.672708]    dig-out=0x25/0x0
[   25.672710]    inputs:
[   25.672713]      Rear Mic=0x1d
[   25.672716]      Front Mic=0x1f
[   25.672718]      Line=0x1c
[   25.672720]      CD=0x22
[   25.672722]      Aux=0x21
[   26.009520] input: HDA ULI M5461 Front Headphone as /devices/pci0000:00/0000:00:1d.0/sound/card0/input9
[   26.027430] input: HDA ULI M5461 Line Out as /devices/pci0000:00/0000:00:1d.0/sound/card0/input8
[   26.058803] input: HDA ULI M5461 Line as /devices/pci0000:00/0000:00:1d.0/sound/card0/input7
[   26.067929] input: HDA ULI M5461 Front Mic as /devices/pci0000:00/0000:00:1d.0/sound/card0/input6
[   26.078910] input: HDA ULI M5461 Rear Mic as /devices/pci0000:00/0000:00:1d.0/sound/card0/input5
[   26.600343] init: failsafe main process (653) killed by TERM signal
[   27.151636] init: samba-ad-dc main process (703) terminated with status 1
[   28.691133] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   31.696407] uli526x 0000:00:1b.0 eth0: NIC Link is Up 100 Mbps Full duplex
[   31.696491] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   32.524677] init: plymouth-upstart-bridge main process ended, respawning
[   33.053818] init: plymouth-stop pre-start process (1290) terminated with status 1
home@home-System-Product-Name ~ $ 
Maya wireless script

Code: Select all

########## wireless info START ##########

Report from: 22 Mar 2015 09:44 UTC +0000

Booted last: 22 Mar 2015 09:24 UTC +0000

Script from: 20 Sep 2014 23:04 UTC +0000

##### release ###########################

Distributor ID:	LinuxMint
Description:	Linux Mint 13 Maya
Release:	13
Codename:	maya

##### kernel ############################

Linux 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

file=/cdrom/preseed/mint.seed, boot=casper, initrd=/casper/initrd.lz, quiet, splash, --, BOOT_IMAGE=/casper/vmlinuz, 

##### desktop ###########################

default.desktop

##### lspci #############################

00:1b.0 Ethernet controller [0200]: ALi Corporation ULi 1689,1573 integrated ethernet. [10b9:5263] (rev 50)
	Subsystem: ASUSTeK Computer Inc. Device [1043:816a]
	Kernel driver in use: uli526x

##### lsusb #############################

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 003: ID 0781:5581 SanDisk Corp. 

##### PCMCIA card info ##################

##### rfkill ############################

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

##### lsmod #############################

ath9k_htc              92738  0 
mac80211              506816  1 ath9k_htc
ath9k_common           14053  1 ath9k_htc
ath9k_hw              411112  2 ath9k_htc,ath9k_common
ath                    24067  3 ath9k_htc,ath9k_common,ath9k_hw
cfg80211              205544  3 ath9k_htc,mac80211,ath

##### interfaces ########################

auto lo
iface lo inet loopback

##### ifconfig ##########################

eth0      Link encap:Ethernet  HWaddr <MAC 'eth0' [IF]>  
          inet6 addr: fe80::215:f2ff:fe3b:9c4e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:637 errors:0 dropped:0 overruns:0 frame:0
          TX packets:324 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:48184 (48.1 KB)  TX bytes:27210 (27.2 KB)
          Interrupt:20 Base address:0xe800 

wlan0     Link encap:Ethernet  HWaddr <MAC 'wlan0' [IF]>  
          inet addr:192.168.1.135  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::c24a:ff:fe1f:4757/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2521 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1705 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3401365 (3.4 MB)  TX bytes:153326 (153.3 KB)

##### iwconfig ##########################

lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"Alice-73696837"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: <MAC 'Alice-73696837' [AN3]>   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=66/70  Signal level=-44 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:6  Invalid misc:64   Missed beacon:0

##### route #############################

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0

##### resolv.conf #######################

grep: /etc/resolv.conf: No such file or directory

##### nm-tool ###########################

NetworkManager Tool

State: connected (global)

- Device: wlan0  [Alice-73696837] ----------------------------------------------
  Type:              802.11 WiFi
  Driver:            ath9k_htc
  State:             connected
  Default:           yes
  HW Address:        <MAC 'wlan0' [IF]>

  Capabilities:
    Speed:           54 Mb/s

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points (* = current AP)
    Alice-36969176:  Infra, <MAC 'Alice-36969176' [AN1]>, Freq 2437 MHz, Rate 54 Mb/s, Strength 44 WPA WPA2
    Alice-75073604:  Infra, <MAC 'Alice-75073604' [AN2]>, Freq 2462 MHz, Rate 54 Mb/s, Strength 39 WPA WPA2
    *Alice-73696837: Infra, <MAC 'Alice-73696837' [AN3]>, Freq 2462 MHz, Rate 54 Mb/s, Strength 84 WPA WPA2
    ALICE-PESC:      Infra, <MAC 'ALICE-PESC' [AN4]>, Freq 2462 MHz, Rate 54 Mb/s, Strength 52 WPA WPA2
    TP-LINK_D252C1:  Infra, <MAC 'TP-LINK_D252C1' [AN5]>, Freq 2437 MHz, Rate 54 Mb/s, Strength 37 WPA WPA2

  IPv4 Settings:
    Address:         192.168.1.135
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.1

    DNS:             192.168.1.1

- Device: eth0 -----------------------------------------------------------------
  Type:              Wired
  Driver:            uli526x
  State:             disconnected
  Default:           no
  HW Address:        <MAC 'eth0' [IF]>

  Capabilities:
    Carrier Detect:  yes
    Speed:           100 Mb/s

  Wired Properties
    Carrier:         on

##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

##### NetworkManager.conf ###############

[main]
plugins=ifupdown,keyfile
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/Alice-73696837]] (600 root)
[connection] id=Alice-73696837 | type=802-11-wireless
[802-11-wireless] ssid=Alice-73696837 | mac-address=<MAC 'wlan0' [IF]>
[ipv4] method=auto
[ipv6] method=auto

##### iw reg get ########################

Region: Etc/UTC (based on set time zone)

country CN:
	(2402 - 2482 @ 40), (N/A, 20)
	(5735 - 5835 @ 40), (N/A, 30)

##### iwlist channels ###################

lo        no frequency information.

eth0      no frequency information.

wlan0     13 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Current Frequency:2.462 GHz (Channel 11)

##### iwlist scan #######################

lo        Interface doesn't support scanning.

wlan0     Interface doesn't support scanning : Device or resource busy

eth0      Interface doesn't support scanning.

##### module infos ######################

[ath9k_htc]
filename:       /lib/modules/3.2.0-23-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
firmware:       htc_9271.fw
firmware:       htc_7010.fw
description:    Atheros driver 802.11n HTC based wireless devices
license:        Dual BSD/GPL
author:         Atheros Communications
srcversion:     9B885B82530A1FF8F15C062
depends:        ath9k_hw,ath9k_common,mac80211,ath,cfg80211
intree:         Y
vermagic:       3.2.0-23-generic SMP mod_unload modversions 
parm:           debug:Debugging mask (uint)
parm:           nohwcrypt:Disable hardware encryption (int)

[mac80211]
filename:       /lib/modules/3.2.0-23-generic/kernel/net/mac80211/mac80211.ko
license:        GPL
description:    IEEE 802.11 subsystem
srcversion:     6D32D386D04C34078417B3A
depends:        cfg80211
intree:         Y
vermagic:       3.2.0-23-generic SMP mod_unload modversions 
parm:           ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)
parm:           max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm:           max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm:           probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)

[ath9k_common]
filename:       /lib/modules/3.2.0-23-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko
license:        Dual BSD/GPL
description:    Shared library for Atheros wireless 802.11n LAN cards.
author:         Atheros Communications
srcversion:     66C217AEA22DC125E3D719E
depends:        ath,ath9k_hw
intree:         Y
vermagic:       3.2.0-23-generic SMP mod_unload modversions 

[ath9k_hw]
filename:       /lib/modules/3.2.0-23-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
license:        Dual BSD/GPL
description:    Support for Atheros 802.11n wireless LAN cards.
author:         Atheros Communications
srcversion:     A16486CE3C091B9EF6AD6C0
depends:        ath
intree:         Y
vermagic:       3.2.0-23-generic SMP mod_unload modversions 
parm:           force_new_ani:Force new ANI for AR5008, AR9001, AR9002 (int)

[ath]
filename:       /lib/modules/3.2.0-23-generic/kernel/drivers/net/wireless/ath/ath.ko
license:        Dual BSD/GPL
description:    Shared library for Atheros wireless LAN cards.
author:         Atheros Communications
srcversion:     11622F021C583F60CC1FA0A
depends:        cfg80211
intree:         Y
vermagic:       3.2.0-23-generic SMP mod_unload modversions 

[cfg80211]
filename:       /lib/modules/3.2.0-23-generic/kernel/net/wireless/cfg80211.ko
description:    wireless configuration support
license:        GPL
author:         Johannes Berg
srcversion:     66E299164E0FE2BD7E0CCE8
depends:        
intree:         Y
vermagic:       3.2.0-23-generic SMP mod_unload modversions 
parm:           ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm:           cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[ath9k_htc]
nohwcrypt: 0

[mac80211]
ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5
probe_wait_ms: 500

[ath9k_hw]
force_new_ani: 0

[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

##### /etc/modules ######################

##### modprobe options ##################

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

##### rc.local ##########################

exit 0

##### pm-utils ##########################

##### udev rules ########################

[/etc/udev/rules.d/70-persistent-net.rules]
# PCI device 0x10b9:/sys/devices/pci0000:00/0000:00:1b.0 (uli526x)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'eth0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# USB device 0x0cf3:0x9271 (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'wlan0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

##### dmesg #############################

[  516.868150] Registered led device: ath9k_htc-phy0
[  516.868161] usb 1-3: ath9k_htc: USB layer initialized
[  516.868213] usbcore: registered new interface driver ath9k_htc
[  529.580665] ADDRCONF(NETDEV_UP): wlan0: link is not ready (repeated 2 times)
[  722.424132] wlan0: authenticate with <MAC 'Alice-73696837' [AN3]> (try 1)
[  722.448156] wlan0: authenticated
[  734.808080] wlan0: associate with <MAC 'Alice-73696837' [AN3]> (try 1)
[  734.832096] wlan0: RX AssocResp from <MAC 'Alice-73696837' [AN3]> (capab=0x411 status=0 aid=1)
[  734.832104] wlan0: associated
[  735.244474] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  750.176016] wlan0: no IPv6 routers present

########## wireless info END ############
AlbertP
Level 16
Level 16
Posts: 6701
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by AlbertP »

On the ath9k_htc driver it is often possible to improve signal strength / connection quality using:

Code: Select all

echo "options ath9k_htc nohwcrypt=1" | sudo tee /etc/modprobe.d/ath9k_htc.conf
Also, since you messed with drivers quite a bit, it may be good to confirm using "inxi -N" that the ath9k_htc driver is still loaded for your device.

@ JeremyB: this command for USB device with ath9k_htc driver is distinct from the one you used, for PCI(e) devices with ath9k driver. Note that ath9k also accepts "nohwcrypt" as argument, but ath9k_htc does not load if you do that, it needs "nohwcrypt=1".
Also, building the wireless backports for one driver only (IE ath9k in your case) disables other wifi drivers. But that's not a problem here as the ath9k_htc driver is also included when using make defconfig-ath9k.
Last edited by AlbertP on Sun Mar 22, 2015 7:34 am, edited 1 time in total.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by JeremyB »

I wonder if

Code: Select all

echo "options ath9k_htc nohwcrypt=1" | sudo tee /etc/modprobe.d/ath9k_htc.conf

Code: Select all

sudo rm /etc/modprobe.d/ath9k.conf
And reboot will fix

One other thing before reboot

Code: Select all

echo "blacklist ath9k" | sudo tee /etc/modprobe.d/ath9k.conf
as ath9k loaded with LM17 but not in LM13 and it might be causing a conflict
AlbertP
Level 16
Level 16
Posts: 6701
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: LinuxMint(17.1 XFCE 32bit) TP-Link TL-WN722N doesn't con

Post by AlbertP »

JeremyB wrote:One other thing before reboot

Code: Select all

echo "blacklist ath9k" | sudo tee /etc/modprobe.d/ath9k.conf
as ath9k loaded with LM17 but not in LM13 and it might be causing a conflict
You don't need to do that. ath9k is a driver for PCI(e) devices, it will never conflict with a driver for a USB device.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
Locked

Return to “Networking”