Kamran Nishat | 3 Mar 21:43 2015
Picon

Probe response

 Hi

how can i stop an AP to respond to a clients probe request with a
probe response should i do it at the mac80211?

Regrads,
Kamran
Viorel Suman | 1 Mar 22:01 2015
Picon

[PATCH] ath9k: guard "ah->intr_ref_cnt" from going "negative"

The counter "ah->intr_ref_cnt" goes into "negative"
territory from "ath9k_stop" method by calling
"disable_interrupts" method directly, and then -
indirectly by calling "ath_prepare_reset" method.
The patch guards the counter from going into
a "negative" territory.

Signed-off-by: Viorel Suman <viorel.suman <at> gmail.com>
---
 drivers/net/wireless/ath/ath9k/mac.c | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
index bba85d1..9369133 100644
--- a/drivers/net/wireless/ath/ath9k/mac.c
+++ b/drivers/net/wireless/ath/ath9k/mac.c
 <at>  <at>  -796,11 +796,24  <at>  <at>  EXPORT_SYMBOL(ath9k_hw_kill_interrupts);

 void ath9k_hw_disable_interrupts(struct ath_hw *ah)
 {
-	if (!(ah->imask & ATH9K_INT_GLOBAL))
-		atomic_set(&ah->intr_ref_cnt, -1);
-	else
-		atomic_dec(&ah->intr_ref_cnt);
-
+	struct ath_common *common = ath9k_hw_common(ah);
+	int rcount;
+
+	if (ah->imask & ATH9K_INT_GLOBAL) {
+		rcount = atomic_read(&ah->intr_ref_cnt);
(Continue reading)

Viorel Suman | 1 Mar 16:42 2015
Picon

[PATCH] ath9k: disable and kill interrupts methods review

The patch guards ah->intr_ref_cnt from going into
a "negative" territory and synchronize the
enable_interrupts and disable_interrupts methods.

Signed-off-by: Viorel Suman <viorel.suman <at> gmail.com>
---
 drivers/net/wireless/ath/ath9k/mac.c | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
index bba85d1..81587d9 100644
--- a/drivers/net/wireless/ath/ath9k/mac.c
+++ b/drivers/net/wireless/ath/ath9k/mac.c
 <at>  <at>  -782,6 +782,8  <at>  <at>  void ath9k_hw_kill_interrupts(struct ath_hw *ah)
 	struct ath_common *common = ath9k_hw_common(ah);

 	ath_dbg(common, INTERRUPT, "disable IER\n");
+	atomic_set(&ah->intr_ref_cnt, -1);
+
 	REG_WRITE(ah, AR_IER, AR_IER_DISABLE);
 	(void) REG_READ(ah, AR_IER);
 	if (!AR_SREV_9100(ah)) {
 <at>  <at>  -796,10 +798,24  <at>  <at>  EXPORT_SYMBOL(ath9k_hw_kill_interrupts);

 void ath9k_hw_disable_interrupts(struct ath_hw *ah)
 {
+	struct ath_common *common = ath9k_hw_common(ah);
+	int rcount;
+
 	if (!(ah->imask & ATH9K_INT_GLOBAL))
(Continue reading)

Sunny Mistry | 23 Feb 18:55 2015

Logging Packet Rates

Hi, 

I wanted to know if it is possible to log the rates at which receiving packets come in at.

Thanks!
 
Sunny Mistry
B.S/M.S Computer Science
University at Buffalo, 2016
Cell: 516-455-3799
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Jonathan Bagg | 20 Feb 21:49 2015

AR9004 scan in AP mode?


I'm evaluating the AR9485 and AR9462 using a 3.18.0 kernel.  I am not 
able to scan (iw wlan0 scan) when the devices are in AP mode. I'm 
wondering if this not possible because the AR9485 and AR9462 lack 
hardware / firmware or is it a limitation of the ath9k driver that could 
be added at some point?

--

-- 
Jonathan Bagg
Embedded Systems Developer
NAD Electronics | Lenbrook Industries Limited
633 Granite Court, Pickering, Ontario, Canada L1W 3K1 | 905-831-0799 ext 4478 | http://www.nadelectronics.com
remy_liaw | 16 Feb 12:00 2015
Picon

Re: ath9k-devel Digest, Vol 80, Issue 15

Dear Compex ‘s  Partner and Friends 

We are having Chinese New Year holiday till 24th Feb 2015 . 
We will reply your email as soon as we back from holiday 

Remy Liaw
Sales Account Manager
www.compex.com.sg
T +65 62862086 | F +65 62809947
Let's Connect....! 
Facebook Twitter Blog Youtube
Compex Systems – Your Trusted Partner in Wireless Co

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Waldek | 16 Feb 08:33 2015
Picon

10/5 Mhz channel width is possible ?

Hi,

I have linux kernel version 3.19 and iw tool v3.17. I have use USB WIFI WN722N which use ATH9k_htc driver from kernel
I would like setup channel width 5 MHZ form my ad-hoc Mesh network base on olsrd

I have try setup in following

iw wlan0 set type ibss
ip link set wlan0 up
iw wlan0 ibss join MYNet 2447 5MHZ

but I have message:

command failed: Invalid argument (-22)

when I use 
iw wlan0 ibss join MYNet 2447

no error message but channel width is 20 Mhz

What is wrong ??

Thank you for help and any suggestion

Waldek
Martin Chauchet | 13 Feb 13:49 2015
Picon

ath9k trace dump with click modular router

Hello everyone,

 

I am posting this on the ath9k mailing list since I got no replies on the Click mailing list.

 

In my current config, I use the Click Modular Router  together with a few Atheros NICs in ordert o achieve wireless full duplex communication.

 

Here is my current config:

OS: Ubuntu 14.04 LTS

Kernel: 3.13

Ath9k: Ubuntu stock version

Click Modular Router: 2.1

 

I am receiving trace dumps like the following from the driver with every packet sent out through the interface. Without Click, no trace dumps are generated.

 

This is an excerpt from /var/log/syslog:

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631704] ------------[ cut here ]------------

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631751] WARNING: CPU: 0 PID: 1225 at /build/buildd/linux-3.13.0/drivers/net/wireless/ath/ath9k/xmit.c:2218 ath_tx_start+0x304/0x310 [ath9k]()

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631756] Modules linked in: click(OX) proclikefs(OX) arc4 ath9k ath9k_common ath9k_hw ath10k_pci kvm_amd ath10k_core ath kvm ath3k mac80211 btusb bluetooth k10temp sp5100_tco cfg80211 i2c_piix4 mac_hid lp parport usb_storage ahci libahci r8169 mii

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631813] CPU: 0 PID: 1225 Comm: kclick Tainted: G           OX 3.13.0-44-generic #73-Ubuntu

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631818] Hardware name: PC Engines APU/APU, BIOS 4.0 09/08/2014

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631823]  0000000000000009 ffff8800d005fa98 ffffffff81720d86 0000000000000000

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631835]  ffff8800d005fad0 ffffffff810677cd ffff8800d051a230 ffff8800d05197c0

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631843]  0000000000000000 ffff8800d212e700 ffff8800d005fb60 ffff8800d005fae0

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631852] Call Trace:

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631869]  [<ffffffff81720d86>] dump_stack+0x45/0x56

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631881]  [<ffffffff810677cd>] warn_slowpath_common+0x7d/0xa0

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631890]  [<ffffffff810678aa>] warn_slowpath_null+0x1a/0x20

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631905]  [<ffffffffa0379984>] ath_tx_start+0x304/0x310 [ath9k]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.631919]  [<ffffffffa0371973>] ath9k_tx+0xa3/0x1c0 [ath9k]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.632021]  [<ffffffffa012dea9>] __ieee80211_tx+0x249/0x350 [mac80211]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.632065]  [<ffffffffa01303cf>] ieee80211_tx+0xbf/0xf0 [mac80211]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.632110]  [<ffffffffa01305ed>] ieee80211_xmit+0x9d/0x100 [mac80211]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.632153]  [<ffffffffa0130ffa>] ieee80211_subif_start_xmit+0x68a/0xd70 [mac80211]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.632168]  [<ffffffff81010000>] ? xen_smp_intr_free+0xc0/0x1d0

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.632177]  [<ffffffff8109d4f5>] ? sched_clock_cpu+0xb5/0x100

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.633168]  [<ffffffffa0434f9b>] _ZN8ToDevice12queue_packetEP6PacketP12netdev_queue+0x11b/0x240 [click]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.634138]  [<ffffffffa0442ee7>] ? _ZN13FullNoteQueue4pushEiP6Packet+0xe7/0x300 [click]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.635092]  [<ffffffffa0435162>] _ZN8ToDevice8run_taskEP4Task+0xa2/0x390 [click]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.636096]  [<ffffffffa03c38f5>] _ZN12RouterThread6driverEv+0x385/0x570 [click]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.637115]  [<ffffffffa0472eec>] _ZL11click_schedPv+0x12c/0x280 [click]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.638081]  [<ffffffffa0472dc0>] ? _Z19click_cleanup_schedv+0x180/0x180 [click]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.639031]  [<ffffffffa0472dc0>] ? _Z19click_cleanup_schedv+0x180/0x180 [click]

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.639068]  [<ffffffff8108b572>] kthread+0xd2/0xf0

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.639091]  [<ffffffff8108b4a0>] ? kthread_create_on_node+0x1c0/0x1c0

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.639101]  [<ffffffff817317bc>] ret_from_fork+0x7c/0xb0

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.639109]  [<ffffffff8108b4a0>] ? kthread_create_on_node+0x1c0/0x1c0

Feb  3 11:09:29 apu-6b7b kernel: [ 4283.639117] ---[ end trace 4f6209ef51490c8b ]---

 

Does anyone have a clue where this is coming from or how I may solve this?

If you need further information, please tell me.

 

Thank you in advance, hope one of you may give me a hint …

 

Martin

 

---------------------------------------------------------

Martin Chauchet, B.Sc.

Bonn Rhein Sieg University of Applied Science

Department of Computer Science

Grantham-Allee 20, Sankt Augustin

http://inf.h-brs.de

mailto:martin.chauchet <at> smail.inf.h-brs.de

---------------------------------------------------------

 

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
mahaveer gupta | 10 Feb 22:22 2015
Picon

broadcast packets with multi-stream MCS

Hello All

I am trying to set MCS indices for broadcast packet.

It works well for all MCS between 0-7, but not fot MCS 8-15 (two streams)

I am using AR9170 chipset with carl9170 driver.

If you need details, I was manually setting appropriate MCS indices  in the function carl9170_tx_apply_rateset

Wondering why broadcast packets are not being sent at MCS indices between 8-15. Please let me know if you can figure out what is going on.

--
Thanks,
M
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
楊佳霖 | 6 Feb 09:03 2015
Picon

Is there any method to detect whether the h/w is in transmission?

Hi all,

I try to implement a idea on some situation that driver will have different behavior depends on whether h/w is in transmission.

Is there any method to know how much frame keep in queue or detect whether the h/w is in transmission?


Thanks and sorry for my English , it's not my native language.

Brain Yang

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
hits | 5 Feb 08:03 2015
Picon

atheros regarding initvals in ath9k and qca-open-hal

Hi all
I am in learning phase of ath9k driver. in the process I observed 
thatthere are many values like  being overriden using initvals in a 
similar style as qca-open-hal.

is there any public documentation available as to what is the meaning 
of those initvals.
if not lease let me know whether me or my organization would be able to 
get the information after any NDA with qca.

 from qca-open-hal. I need specificallythe meanings of the variables in 
agc_reg_map.
osprey_reg_map
->bb_reg_map
-->agc_reg_map

Thanks
--rahul

Gmane