Brandon Enochs | 25 Aug 16:15 2015
Picon

Re: How to get CSI from Atheros Chipset

The OFDM subcarrier information per frame from the AR9380 would be very useful.


On Tue, Aug 25, 2015, 6:00 AM  <ath9k-devel-request <at> lists.ath9k.org> wrote:
Send ath9k-devel mailing list submissions to
        ath9k-devel <at> lists.ath9k.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.ath9k.org/mailman/listinfo/ath9k-devel
or, via email, send a message with subject or body 'help' to
        ath9k-devel-request <at> lists.ath9k.org

You can reach the person managing the list at
        ath9k-devel-owner <at> lists.ath9k.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ath9k-devel digest..."


Today's Topics:

   1. Re: How to get CSI from Atheros Chipset (Till Wollenberg)
   2. Re: How to get CSI from Atheros Chipset (Adrian Chadd)
   3. ath CountryCode enum is missing a few entries. (Ben Greear)


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

Message: 1
Date: Mon, 24 Aug 2015 17:14:04 +0200
From: Till Wollenberg <till.wollenberg <at> uni-rostock.de>
Subject: Re: [ath9k-devel] How to get CSI from Atheros Chipset
To: <ath9k-devel <at> lists.ath9k.org>
Message-ID: <55DB34BC.5010301 <at> uni-rostock.de>
Content-Type: text/plain; charset="windows-1252"; format=flowed

Hi!

* On 23.08.2015 at 21:57 Adrian Chadd wrote:
> [Getting CSI]
> ok, I've found a few pieces about this. What exactly are people after?

SNR per OFDM sub-carrier for a recevied frame would be *very* interesting to me.


Best
Till



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

Message: 2
Date: Mon, 24 Aug 2015 09:40:41 -0700
From: Adrian Chadd <adrian <at> freebsd.org>
Subject: Re: [ath9k-devel] How to get CSI from Atheros Chipset
To: Till Wollenberg <till.wollenberg <at> uni-rostock.de>
Cc: ath9k-devel <ath9k-devel <at> lists.ath9k.org>
Message-ID:
        <CAJ-Vmo=GWYFMnLg=-hRwe7iEPjs5qcTYJn9YaDXX-R0uVSQHxw <at> mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

ok,

So the legacy bits include |I| and |Q| but it's not per-frame, it's
set-once-and-get-next-frame. You then read bins from the NIC itself in
some shared memory inside said NIC. I'll go see if this works on the
earlier chips and try to get this published, at least so there's
something to start with.

I think AR9380 and later support what you saw in that paper - where
you request that you get CSI data as part of some receive frame. I
/think/ it's part of the TxBF support. I'll have to double-check if
that's okay to extract and publish.



-adrian



On 24 August 2015 at 08:14, Till Wollenberg
<till.wollenberg <at> uni-rostock.de> wrote:
> Hi!
>
> * On 23.08.2015 at 21:57 Adrian Chadd wrote:
>> [Getting CSI]
>> ok, I've found a few pieces about this. What exactly are people after?
>
> SNR per OFDM sub-carrier for a recevied frame would be *very* interesting to me.
>
>
> Best
> Till
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel <at> lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel


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

Message: 3
Date: Mon, 24 Aug 2015 15:50:55 -0700
From: Ben Greear <greearb <at> candelatech.com>
Subject: [ath9k-devel] ath CountryCode enum is missing a few entries.
To: "ath9k-devel <at> lists.ath9k.org" <ath9k-devel <at> venema.h4ckr.net>
Message-ID: <55DB9FCF.2020408 <at> candelatech.com>
Content-Type: text/plain; charset=utf-8; format=flowed

We wrote a script to try all country codes, and we notice that
with some codes, the driver will fail to load.  (We have added
a patch to ath9k to allow over-riding the country-code for testing
purposes.)

For instance, Afghanistan (4) is missing.

Should these be added?

Thanks,
Ben

--
Ben Greear <greearb <at> candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



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

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


End of ath9k-devel Digest, Vol 86, Issue 13
*******************************************
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Ben Greear | 25 Aug 00:50 2015

ath CountryCode enum is missing a few entries.

We wrote a script to try all country codes, and we notice that
with some codes, the driver will fail to load.  (We have added
a patch to ath9k to allow over-riding the country-code for testing
purposes.)

For instance, Afghanistan (4) is missing.

Should these be added?

Thanks,
Ben

--

-- 
Ben Greear <greearb <at> candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
Hemamali G | 24 Aug 11:57 2015
Picon

Re: How to get CSI from Atheros Chipset

Hi Vincent,
     Yes, i looked at this, but i am looking for more details on Hw register programming, and also getting the time stamping information. More over am looking for this kind of support for latest atheros 11ac chips on Ath10k driver.

Cheers,
-Hema

On Mon, Aug 24, 2015 at 3:21 PM, Vincent Schnitzbauer <vinschni <at> gmail.com> wrote:
Hi Hema,

Greetings,
Vincent

2015-08-24 11:29 GMT+02:00 Hemamali G <hemajnan <at> gmail.com>:
Hi Adrian,
       We are looking for Physical layer CSI (channel state information) extraction from ath9k/ath10k driver on latest Atheros WiFi chipsets. since we know that Hw has the readable support of estimated channel FFT buffer for a given packet.

Hope this is clear to you
Cheers
-Hema


On Mon, Aug 24, 2015 at 1:27 AM, Adrian Chadd <adrian <at> freebsd.org> wrote:
ok, I've found a few pieces about this. What exactly are people after?


-a


On 22 August 2015 at 11:09, Hemamali G <hemajnan <at> gmail.com> wrote:
> Guys,
>        can somebody help me out on this!
>
>
> On Fri, Aug 14, 2015 at 6:42 AM, Adrian Chadd <adrian <at> freebsd.org> wrote:
>>
>> ugh, someone needs to come to the bay area and keep poking me until I
>> code it oup. :(
>>
>>
>> -a
>>
>>
>> On 13 August 2015 at 13:06, Hemamali <hemajnan <at> gmail.com> wrote:
>> > Zeyu Wang <uchihatmtkinu <at> gmail.com> writes:
>> >
>> >>
>> >> Dear all,
>> >> I'm a newer PhD student in HKUST and I read a paper which use the CSI
>> > information to do the localization. In the paper, the authors use the
>> > AR9390 chipset and modify the ath9k driver to get the CSI information.
>> >>
>> >> Recently I searched on Google and found there are some emails talked
>> > about the CSI in ath9k. Is there any way to get it by my own?
>> >>
>> >> Thanks a lot!
>> >>
>> >> Sincerely
>> >>
>> >> Zeyu
>> >>
>> >> HKUST
>> >>
>> >>
>> >> _______________________________________________
>> >> ath9k-devel mailing list
>> >> ath9k-devel <at> lists.ath9k.org
>> >> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>> >>
>> >
>> > Dear Zeyu,
>> >    Did you get answers to this query? Am also looking for similar
>> > requirement, if you got the way can you please pass that information.
>> >
>> > Thanks much
>> > -Hema
>> >
>> > _______________________________________________
>> > ath9k-devel mailing list
>> > ath9k-devel <at> lists.ath9k.org
>> > https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>


_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel



_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Adrian Chadd | 24 Aug 00:04 2015
Picon

Re: How to get CSI from Atheros Chipset

So you're after IQ per per OFDM, right?

-a

On 23 August 2015 at 13:13, Vincent Schnitzbauer <vinschni <at> gmail.com> wrote:
> Hi Ardian,
> I'm a student at Karlsruhe Institute of Technology in Germany.
> Recently e.g. Wang et al. showed that it is possible achive pretty good
> device-free human activity recognition with fine grained wifi information.
> The phase information is an additional magnitude in which changes in the
> signal are reflected.
>
> Of course it is possible to use special hardware (e.g. atmel transceivers or
> software radios) to get phase and amplitude information, but there is a
> interest in using off-the-shelf communication hardware to extend its
> purpose.
>
> I'm currently working on this topic, utilizing off-the-shelf routers with
> atheros chips for presence detection.
>
>  <at> Zeyu Wang, what are your plans  with CSI? If you wish you could give me a
> short update by mailing me.
>
> Best wishes.
>
> 2015-08-23 21:57 GMT+02:00 Adrian Chadd <adrian <at> freebsd.org>:
>>
>> ok, I've found a few pieces about this. What exactly are people after?
>>
>>
>> -a
>>
>>
>> On 22 August 2015 at 11:09, Hemamali G <hemajnan <at> gmail.com> wrote:
>> > Guys,
>> >        can somebody help me out on this!
>> >
>> >
>> > On Fri, Aug 14, 2015 at 6:42 AM, Adrian Chadd <adrian <at> freebsd.org>
>> > wrote:
>> >>
>> >> ugh, someone needs to come to the bay area and keep poking me until I
>> >> code it oup. :(
>> >>
>> >>
>> >> -a
>> >>
>> >>
>> >> On 13 August 2015 at 13:06, Hemamali <hemajnan <at> gmail.com> wrote:
>> >> > Zeyu Wang <uchihatmtkinu <at> gmail.com> writes:
>> >> >
>> >> >>
>> >> >> Dear all,
>> >> >> I'm a newer PhD student in HKUST and I read a paper which use the
>> >> >> CSI
>> >> > information to do the localization. In the paper, the authors use the
>> >> > AR9390 chipset and modify the ath9k driver to get the CSI
>> >> > information.
>> >> >>
>> >> >> Recently I searched on Google and found there are some emails talked
>> >> > about the CSI in ath9k. Is there any way to get it by my own?
>> >> >>
>> >> >> Thanks a lot!
>> >> >>
>> >> >> Sincerely
>> >> >>
>> >> >> Zeyu
>> >> >>
>> >> >> HKUST
>> >> >>
>> >> >>
>> >> >> _______________________________________________
>> >> >> ath9k-devel mailing list
>> >> >> ath9k-devel <at> lists.ath9k.org
>> >> >> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>> >> >>
>> >> >
>> >> > Dear Zeyu,
>> >> >    Did you get answers to this query? Am also looking for similar
>> >> > requirement, if you got the way can you please pass that information.
>> >> >
>> >> > Thanks much
>> >> > -Hema
>> >> >
>> >> > _______________________________________________
>> >> > ath9k-devel mailing list
>> >> > ath9k-devel <at> lists.ath9k.org
>> >> > https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>> >
>> >
>> _______________________________________________
>> ath9k-devel mailing list
>> ath9k-devel <at> lists.ath9k.org
>> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>
Jeon | 23 Aug 19:20 2015
Picon

Getting notified everytime a frame transmission is attempted

I am modifying ath9k driver on Ubuntu 14.04. WLAN card is AR5BHB116 with AR9382 chip.

What I want to do is, I want ath9k driver to get notified everytime that a DATA frame is tranmitted into air. I don't take success or failure of transmission into account. In other words, if there are 5 transmission and retransmission in total, I want to ath9k driver to get notified 5 times.

Currently, I've tried a couple of ways to do it.
First, I've investigated the transmission path.

    ath9k_tx (main.c) -> ath9k_tx_start (xmit.c) -> ath_tx_prepare (xmit.c) -> ath_tx_send_normal (xmit.c) -> ath_tx_txqaddbuf (xmit.c) -> ath9k_hw_txstart (mac.c)

I've realized that, however, this transmission path ends after a frame is added to a tx queue and ath9k sets TXE register. It does not do anything about a 'real' transmission of a frame into air

Second, I've investigated tx interrupt and tasklet.

    ath9k_tasklet() (main.c) -> ath_tx_edma_tasklet() (xmit.c) -> ath_tx_process_buffer (xmit.c) -> ath_tx_complete_aggr (xmit.c) (if ampdu is used) -> ath_tx_complete_buf (xmit.c) -> ath_tx_complete (xmit.c) ath_txq_skb_done (xmit.c)

In the path above, ath_tx_edma_tasklet() is called if ath9k_tasklet() detects ATH9K_INT_TX flag is set.

In ar9003_mac.c which AR9382 chip uses, ATH9K_INT_TX is set when:

    if (ah->config.tx_intr_mitigation)
        if (isr & (AR_ISR_TXMINTR | AR_ISR_TXINTM))
            *masked |= ATH9K_INT_TX;

    if (isr & (AR_ISR_TXOK | AR_ISR_TXERR | AR_ISR_TXEOL)) {
        *masked |= ATH9K_INT_TX;

But I have no idea what each AR_ISR_TX*** and tx_intr_mitigation stands for. One thing that I know is, AR_ISR_TXOK is set when an ACK frame for a transmitted frame is received. I don't know about the rest of them.

After some searching and reading, some say that atheros WLAN card (hardware or firmware) does not notify every frame transmission attempt because it would be a considerable overhead. But, I really really really want it and need it.

Is there anyone who could give me even a tiny advice about it?

Regards,
Jeon.
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Brandon Enochs | 22 Aug 00:17 2015
Picon

802.11 Channel State Information

I saw some mailing lists posts about support for this, but I couldn't find any follow ups.  Does anybody know if this is supported?  Ideally it would be a radiotap field, but anything would do.

Thanks,
Brandon

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Allan Matthew | 18 Aug 23:03 2015
Picon

set channel from radiotap headers during injection

I posted this question on linux-wireless but got no response, so I
thought I'd try in ath9k:

I'd like to be able to set the channel information on a per-packet
basis during monitor-mode injection.  Specifically, I would like to be
able to change the channel bandwidth down to half and quarter rates
(my PHY supports this) based on the radiotap header information.
Additionally, if its possible to change the channel itself that would
be desirable.

I've been able to add rate and FEC control to
ieee80211_parse_tx_radiotap, but I'm not sure where to start with
setting channel information. Has anyone been able to do this?  If not,
what do I need to set in order to get per-packet channel control?  Is
this something that can be accomplished with channel context somehow?

Thanks very much.
kousar malekinasab | 15 Aug 12:51 2015
Picon

request

hello
i want use sta_info_get function (backport/net/mac802.11/sta_info.h) in the xmit(backport/driver/net/wireless/ath/ath9k/xmit.c)
but when i want install backport i watch this erorr : ath9k.ko has error( sta_info_get function is not define)
how can add this declaration function to the ath9k.ko
thanks
Dan Carpenter | 11 Aug 23:43 2015
Picon

Re: ath9k_htc: Support for AR9271 chipset.

Hello Sujith,

The patch fb9987d0f748: "ath9k_htc: Support for AR9271 chipset." from
Mar 17, 2010, leads to the following static checker warning:

	drivers/net/wireless/ath/ath9k/htc_drv_main.c:850 ath9k_htc_ani_work()
	warn: 'common->ani.caldone' can be either negative or positive

drivers/net/wireless/ath/ath9k/htc_drv_main.c
   830                  /* Perform calibration if necessary */
   831                  if (longcal || shortcal)
   832                          common->ani.caldone =
   833                                  ath9k_hw_calibrate(ah, ah->curchan,
   834                                                     ah->rxchainmask, longcal);

ath9k_hw_calibrate() returns true/false/-ETIMEOUT.

   835  
   836                  ath9k_htc_ps_restore(priv);
   837          }
   838  
   839  set_timer:
   840          /*
   841          * Set timer interval based on previous results.
   842          * The interval must be the shortest necessary to satisfy ANI,
   843          * short calibration and long calibration.
   844          */
   845          cal_interval = ATH_LONG_CALINTERVAL;
   846          cal_interval = min(cal_interval, (u32)ATH_ANI_POLLINTERVAL);
   847          if (!common->ani.caldone)

But we don't test for negative here.

   848                  cal_interval = min(cal_interval, (u32)short_cal_interval);
   849  
   850          ieee80211_queue_delayed_work(common->hw, &priv->ani_work,
   851                                       msecs_to_jiffies(cal_interval));
   852  }

regards,
dan carpenter
Gucea Doru | 9 Aug 18:11 2015
Picon

Smartphone with an ath9k driver

Hello folks,

Is there any Android smartphone which has an Atheros WiFi chip that uses the ath9k driver?
I searched several hours for this information but with no result :)

Best regards,
Doru
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Marty Faltesek | 4 Aug 22:33 2015
Picon

ath9k hangs with recent backports

We are seeing a hang on ath9k where traffic and beacons stops anywhere
from a few minutes to half a day. Log output continues. With debug
enabled, we see this during the hang:

ath: phy0: tx hung, resetting the chip.

The issue was not observed in backports 3.19-rc1, but in recent
backports, the issue was first noted going as far back as
backports-20150222 (perhaps earlier,  still checking). We still see
the hang in linux-next as recent as next-20150729.

Configuration:
        dual-core ARM Freescale LS1024A (f.k.a. Mindspeed Comcerto 2000)
        AR9300

Thanks for any pointers.

Gmane