From: Rolf Anderegg <rolf.anderegg@weiss.ch>
To: <linux-wireless@vger.kernel.org>
Subject: ath5k: SIOCGIWFREQ ioctl EINVAL
Date: Mon, 17 Mar 2014 19:42:36 +0100 [thread overview]
Message-ID: <5327421C.2040603@weiss.ch> (raw)
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
reply other threads:[~2014-03-17 18:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5327421C.2040603@weiss.ch \
--to=rolf.anderegg@weiss.ch \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).