* Physical carrier sensing (CCA)
@ 2014-06-05 8:57 Gaurav Kumar Chauhan
2014-06-07 7:32 ` Fred Chou
2014-06-10 8:48 ` Sergey Ryazanov
0 siblings, 2 replies; 4+ messages in thread
From: Gaurav Kumar Chauhan @ 2014-06-05 8:57 UTC (permalink / raw)
To: linux-wireless
Hi,
I am working on measuring channel load which requires knowledge of
carrier sensing.
I am comfortable with virtual carrier sensing but not with physical
carrier sensing.
I tried to google it but didn't get more than basics. I want to know
about physical carrier
sensing in detail and where code for physical sensing is present.
Is it in driver or in firmware?
I am using atheros pci-express card and ath9k driver.
Please help me. Thanks in advance.
Regards,
Gaurav
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Physical carrier sensing (CCA)
2014-06-05 8:57 Physical carrier sensing (CCA) Gaurav Kumar Chauhan
@ 2014-06-07 7:32 ` Fred Chou
2014-06-10 8:48 ` Sergey Ryazanov
1 sibling, 0 replies; 4+ messages in thread
From: Fred Chou @ 2014-06-07 7:32 UTC (permalink / raw)
To: Gaurav Kumar Chauhan; +Cc: linux-wireless
On 06/05/2014 04:57 PM, Gaurav Kumar Chauhan wrote:
> I tried to google it but didn't get more than basics. I want to know
> about physical carrier
> sensing in detail and where code for physical sensing is present.
>
> Is it in driver or in firmware?
Had similar question before, and after some survey, my understanding is
physical carrier sensing is done by hardware, and in firmware you only
need to read some status register find out sensing result.
Correct me if I am wrong.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Physical carrier sensing (CCA)
2014-06-05 8:57 Physical carrier sensing (CCA) Gaurav Kumar Chauhan
2014-06-07 7:32 ` Fred Chou
@ 2014-06-10 8:48 ` Sergey Ryazanov
[not found] ` <5399929D.5010304@globaledgesoft.com>
1 sibling, 1 reply; 4+ messages in thread
From: Sergey Ryazanov @ 2014-06-10 8:48 UTC (permalink / raw)
To: Gaurav Kumar Chauhan; +Cc: linux-wireless@vger.kernel.org, ath9k-devel
Hi,
2014-06-05 12:57 GMT+04:00 Gaurav Kumar Chauhan <ck.gaurav@globaledgesoft.com>:
> I am working on measuring channel load which requires knowledge of carrier
> sensing.
>
> I am comfortable with virtual carrier sensing but not with physical carrier
> sensing.
> I tried to google it but didn't get more than basics. I want to know about
> physical carrier
> sensing in detail and where code for physical sensing is present.
>
> Is it in driver or in firmware?
> I am using atheros pci-express card and ath9k driver.
Physical and virtual carrier sensing are both realized in hardware at
least in AR9xxx chips. Chip provides some knobs to control both of
them (on/off, setup levels, etc.) and allows retrieve some statistics
(see channel survey code of ath9k driver for example).
--
BR,
Sergey
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Physical carrier sensing (CCA)
[not found] ` <5399929D.5010304@globaledgesoft.com>
@ 2014-06-12 15:15 ` Sergey Ryazanov
0 siblings, 0 replies; 4+ messages in thread
From: Sergey Ryazanov @ 2014-06-12 15:15 UTC (permalink / raw)
To: Gaurav Kumar Chauhan; +Cc: ath9k-devel, linux-wireless@vger.kernel.org
2014-06-12 15:44 GMT+04:00 Gaurav Kumar Chauhan <ck.gaurav@globaledgesoft.com>:
>> On Tuesday 10 June 2014 02:18 PM, Sergey Ryazanov wrote:
>>> 2014-06-05 12:57 GMT+04:00 Gaurav Kumar Chauhan
>>> <ck.gaurav@globaledgesoft.com>:
>>>
>>> I am working on measuring channel load which requires knowledge of carrier
>>> sensing.
>>>
>>> I am comfortable with virtual carrier sensing but not with physical carrier
>>> sensing.
>>> I tried to google it but didn't get more than basics. I want to know about
>>> physical carrier
>>> sensing in detail and where code for physical sensing is present.
>>>
>>> Is it in driver or in firmware?
>>> I am using atheros pci-express card and ath9k driver.
>>
>> Physical and virtual carrier sensing are both realized in hardware at
>> least in AR9xxx chips. Chip provides some knobs to control both of
>> them (on/off, setup levels, etc.) and allows retrieve some statistics
>> (see channel survey code of ath9k driver for example).
>>
>
> Hi Sergey,
>
> Thanks for replying. Your information really helped me a lot.
>
> In ath9k/main.c there is one function called ath9k_get_survey() which inter
> calls ath_update_survey_stats() function.
> In ath_update_survey_stats() , struct survey_info members a getting
> initialized.
>
> One of the member is channel_time_busy: amount of time the primary channel
> was sensed busy.
> I want to confirm if this member holds the channel busy time value returned
> by physical carrier sensing mechanism.
>
AR9xxx measure four values and export them via appropriate registers:
- Tx time
- Rx time
- Channel busy time
- Total measurement period time
And I don't know is Tx/Rx time accounted by the busy time counter or
not. Seems that busy time counter considers whole busy time, but you
need to investigate this by yourself or ask somebody who know.
And please don't mail me privately.
--
BR,
Sergey
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-12 15:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 8:57 Physical carrier sensing (CCA) Gaurav Kumar Chauhan
2014-06-07 7:32 ` Fred Chou
2014-06-10 8:48 ` Sergey Ryazanov
[not found] ` <5399929D.5010304@globaledgesoft.com>
2014-06-12 15:15 ` Sergey Ryazanov
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).