linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ath5k: SIOCGIWFREQ ioctl EINVAL
@ 2014-03-17 18:42 Rolf Anderegg
  0 siblings, 0 replies; only message in thread
From: Rolf Anderegg @ 2014-03-17 18:42 UTC (permalink / raw)
  To: linux-wireless

I was lately required to move to a newer kernel (3.12.10-rt15) on an Intel Atom
setup. All is working fine, including the wireless module (ath5k) acting as an
access point on my bridge, using hostapd:

:~$ lspci
...
03:00.0 Ethernet controller: Qualcomm Atheros AR5212/AR5213 Wireless Network
Adapter (rev 01)
	Subsystem: D-Link System Inc AirPlus DWL-G520 Wireless PCI Adapter (rev. B)
	Flags: bus master, fast Back2Back, medium devsel, latency 168, IRQ 20
	Memory at d0000000 (32-bit, non-prefetchable) [size=64K]
	Kernel driver in use: ath5k
	Kernel modules: ath5k
...
:~$ iwconfig ath0
ath0      IEEE 802.11bg  Mode:Master  Tx-Power=27 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

:~$ iwlist ath0 f
ath0      11 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


However, as can be seen above I am now unable to read the current
channel/frequency info within iwlist, iwconfig or any other tool; ioctl on
SIOCGIWFREQ seems to fail with EINVAL (Invalid argument):

:~$ strace iwconfig ath0
...
ioctl(3, SIOCGIWFREQ, 0xbfc8f41c)       = -1 EINVAL (Invalid argument)
...

I also have a a USB wireless stick (based on AR9271, using module ath9k_htc) at
hand, also working fine in same setup, but no chance to read SIOCGIWFREQ.
Why could this be? Has anything changed in the atheros wireless section
regarding this?
Thanks in advance,

Rolf Anderegg

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-17 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17 18:42 ath5k: SIOCGIWFREQ ioctl EINVAL Rolf Anderegg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).