Skip to contentSkip to conversation

802.11 MAC state information

DISCUSSION h2o-post 2 participants 4 messages Feb 8, 2011

lore
Share & tools
lore

h2o-post

author
#0 lore raw

Hi all,

I would like to know from the Broadcom experts, if there is the possibility in the b43 driver to read the current state of the 802.11 MAC..
As I am more familiar with the Atheros design, I am uncertain if there are register that someone could just sample to get this information or if you need to get some hocks int the micro controller code ???
To explain briefly the way I get this information form Atheros hardware: on the wifi card there is a 40MHzmac clock that counts up 4 registers. One for the clock ticks itself, one for the MAC been in transmitting mode, one counter for the MAC been in receiving mode and the last counter represents energy detection above the cca threshold. I already checked the b43 souce code in order to find some registers that could count those mac states .. but I was not able to find anything. So I am asking to the list
where such information would be accessible from the Broadcom wifi hardware.

Thx for helping
Thomas

#1 lore raw
Quoted 7 lines · On Tue, 2011-02-08 at 11:36 +0100, h2o-post wrote:

Hi all,

I would like to know from the Broadcom experts, if there is the possibility in the b43 driver to read the current state of the 802.11 MAC..
As I am more familiar with the Atheros design, I am uncertain if there are register that someone could just sample to get this information or if you need to get some hocks int the micro controller code ???
To explain briefly the way I get this information form Atheros hardware: on the wifi card there is a 40MHzmac clock that counts up 4 registers. One for the clock ticks itself, one for the MAC been in transmitting mode, one counter for the MAC been in receiving mode and the last counter represents energy detection above the cca threshold. I already checked the b43 souce code in order to find some registers that could count those mac states .. but I was not able to find anything. So I am asking to the list
where such information would be accessible from the Broadcom wifi hardware.

You can get all information you want from
http://bcm-v4.sipsolutions.net/

There's no such thing as "the MAC state". There are hundreds of registers related to various "MAC states". So you'll have to be more specific on what you want to know.

Signature · 1 line
Greetings Michael.
author
#2 lore raw
Quoted 14 lines
Quoted 3 lines

Hi all,

I would like to know from the Broadcom experts, if there is the possibility in

the b43 driver to read the current state of the 802.11 MAC..

Quoted 1 line

As I am more familiar with the Atheros design, I am uncertain if there are

register that someone could just sample to get this information or if you need to get some hocks int the micro controller code ???

Quoted 1 line

To explain briefly the way I get this information form Atheros hardware: on

the wifi card there is a 40MHzmac clock that counts up 4 registers. One for the clock ticks itself, one for the MAC been in transmitting mode, one counter for the MAC been in receiving mode and the last counter represents energy detection above the cca threshold.

Quoted 2 lines

I already checked the b43 souce code in order to find some registers that could count those mac states .. but I was not able to find anything. So I

Quoted 8 lines

am asking to the list where such information would be accessible from the Broadcom wifi hardware.

You can get all information you want from http://bcm-v4.sipsolutions.net/

There's no such thing as "the MAC state". There are hundreds of registers related to various "MAC states". So you'll have to be more specific on what you want to know.

I would like to sample if the Broadcom wifi card (MAC) is transmitting, receiving or idle over time.
Within the Atheros hardware there are register counters that count if one of the above - I call them - mac-state are present.
Which those measurements I am looking into airtime consumption of different packets for sending and receiving.
For example: 1500Byte udp packet causes the sender wifi card @54Mbit to be busy by this transmission for 240 micro sec (what I measure in the Atheros hardware is a txcounter increase by ~9600 ticks @40MHz)... also quite interesting are the distributions of receiving states over time and cca channel sensing busy over time. I have implemented I quite fast mechanism to read/dump the Atheros registers to a trace file in order to validate different upper layer traffic patterns/settings. I would like to extend this measurement to Broadcom hardware as well.
For Atheros also the wprobe-utility from nbd, a nice tool that make use out of this "mac-state" over time measurements, maybe you have heard about it ?

Does this make sense to you what I am interested in ?

Thomas

Quoted 2 lines

--
Greetings Michael.

#3 lore raw
Quoted 8 lines · On Tue, 2011-02-08 at 16:21 +0100, h2o-post wrote:

I would like to sample if the Broadcom wifi card (MAC) is transmitting, receiving or idle over time.
Within the Atheros hardware there are register counters that count if one of the above - I call them - mac-state are present.
Which those measurements I am looking into airtime consumption of different packets for sending and receiving.
For example: 1500Byte udp packet causes the sender wifi card @54Mbit to be busy by this transmission for 240 micro sec (what I measure in the Atheros hardware is a txcounter increase by ~9600 ticks @40MHz)... also quite interesting are the distributions of receiving states over time and cca channel sensing busy over time. I have implemented I quite fast mechanism to read/dump the Atheros registers to a trace file in order to validate different upper layer traffic patterns/settings. I would like to extend this measurement to Broadcom hardware as well.
For Atheros also the wprobe-utility from nbd, a nice tool that make use out of this "mac-state" over time measurements, maybe you have heard about it ?

Does this make sense to you what I am interested in ?

The best and most accurate way to achieve this certainly is to modify the firmware.
I don't know if the stock firmware provides enough information for this without modification. You'll probably have to dig through the specs wiki.

Signature · 1 line
Greetings Michael.