USB8388 CWmin value change
Anadi Mishra
reachanadi at gmail.com
Thu Nov 20 04:25:26 EST 2008
Hi all,
I am trying to change the CWmin value in the USB8388 device
through the debugfs interface provided.
This is what I am getting.
anadi at anadi:/mnt/lbs_wireless/eth1/registers$ echo "0xYYYY" > rdmac ; cat rdmac
MAC[0xYYYY] = 0x0000000f
anadi at anadi:/mnt/lbs_wireless/eth1/registers$ echo "0xYYYY 0x20" > wrmac
anadi at anadi:/mnt/lbs_wireless/eth1/registers$ echo "0xYYYY" > rdmac ; cat rdmac
MAC[0xYYYY] = 0x0000000f
Here 0xYYYY is the offset of the register which holds CWmin. As can be
seen the original value is 0x0f and I change it to 0x20. Although the
command does'nt fail the value is not changed.
The debug logs for libertas (only CMD activated) are as follows:
0x0019 is the value for CMD_MAC_REG_ACCESS according to the firmware
specification.
[ 6826.739579] libertas cmd: DNLD_CMD: command 0x0019, seq 184, size 16
[ 6826.740346] libertas cmd: CMD_RESP: response 0x8019, seq 184, size
16 // 0x8019 seems to be the response code saying that the
command
succeeded, because the first operation is
"rdmac"
which gives " 0x0000000f" as the result.
[ 6829.771198] libertas cmd: DNLD_CMD: command 0x0019, seq 185, size
16 // "wrmac" operation with the same response
[ 6829.771864] libertas cmd: CMD_RESP: response 0x8019, seq 185, size 16
[ 6829.785910] libertas cmd: DNLD_CMD: command 0x0019, seq 186, size 16
[ 6829.786666] libertas cmd: CMD_RESP: response 0x8019, seq 186, size 16
Can anyone tell me what is happening?
One previous mail on the list says that maybe the value is changed but
is not retained.
http://lists.infradead.org/pipermail/libertas-dev/2006-November/000152.html
But that was with wlanconfig.
Regards,
Anadi.
More information about the libertas-dev
mailing list