how to modify the warning by compile the rt73 driver

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4872

fly4412539

01-07-2008 08:29:13

mlme.c In function `STAMlmePeriodicExec'
mlme.c851 warning unused variable `RxSignal'


i use the linux kernel 2.4.20

best regards !!

IvD

01-07-2008 08:36:14

That is an unimportant warning that you can ignore.

fly4412539

01-07-2008 09:10:14

That is an unimportant warning that you can ignore.[/quote34wq3dtd]
but when
# iwlist wlan0 scanning
can not see the Singal strength

i think this is a problem from the warning

IvD

01-07-2008 09:47:58

That is an unimportant warning that you can ignore.[/quote1gtw844t]
but when
# iwlist wlan0 scanning
can not see the Singal strength

i think this is a problem from the warning[/quote1gtw844t]

No it isn't.

fly4412539

01-07-2008 09:53:10

That is an unimportant warning that you can ignore.[/quote2a855dfa]
but when
# iwlist wlan0 scanning
can not see the Singal strength

i think this is a problem from the warning[/quote2a855dfa]

No it isn't.[/quote2a855dfa]

but how can i see the singal strehgth by
#iwlist wlan0 scanning

is it the driver problem?

Vern

01-07-2008 17:14:00

mlme.c851 warning unused variable `RxSignal'[/quote2gn6km0m]That variable is not present in the latest CVS version of the file. All legacy drivers should compile and link without error or warning messages.

Please download the latest CVS, build it and see what happens.

Thanks,

fly4412539

02-07-2008 01:43:20

now i know it is not the problem for the warnnig "..... " why i can not see the Singal strength.
But why?[/color37xfez4e]

when i use the kernel 2.6.24-16 which has the driver modules for RT73.the scanning result is
Cell 04 - Address 001839849126
ESSID"linksys"
ModeMaster
Channel11
Frequency2.462 GHz (Channel 11)
Quality=48/100 Signal level=-70 dBm
Encryption keyon
IE WPA Version 1
Group Cipher TKIP
Pairwise Ciphers (2) CCMP TKIP
Authentication Suites (1) PSK
IE IEEE 802.11i/WPA2 Version 1
Group Cipher TKIP
Pairwise Ciphers (2) CCMP TKIP
Authentication Suites (1) PSK
Bit Rates1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Extratsf=00000000686e415b[/color37xfez4e]

But [/color37xfez4e]
when i use the driver rt73-cvs-2008063000 .the scan result is
Cell 04 - Address 001839849126
ESSID"linksys"
ModeManaged
Channel11
Encryption keyon
Bit Rates148 Mb/s[/color37xfez4e]

now i want to use the rt73-cvs-2008063000 driver and i want to see the scannig result as the 2.6.24-16,how can i do?
thanks
best regarts[/color37xfez4e]

Vern

02-07-2008 03:32:23

now i want to use the rt73-cvs-2008063000 driver and i want to see the scannig result as the 2.6.24-16,how can i do?[/quote2shb9098]Zip, nada, zilch. Each driver returns its own (sub)set of info. See "man iwlist" where it talks about "optionally".

Thanks,

fly4412539

02-07-2008 06:02:17

first thanks all


where is the LinkQuality var ??
how can i find it?

IvD

02-07-2008 08:52:49

For rt2x00, the driver inside the kernel which does report signal and quality
signal is the RSSI value with which the beacon or probe response was received. That means it only tells something about that actual beacon and not so much about the network itself.
The quality is a produced by an algorithm which takes the successfully transmitted frames, the successfully received frames and the average RSSI of all RX frames and produces a quality value from it.

fly4412539

03-07-2008 08:09:04

first thanks all


where is the LinkQuality var ??
how can i find it?

IvD

03-07-2008 08:29:05

As you already noticed, it isn't reported by the legacy driver...

fly4412539

03-07-2008 08:40:34

thanks

now i want to modify the rtmp_info.c
when i
# iwlist wlan0 scanning
i can see the LinkQuality SignalStrength at the "Extra ....."

so what can i do ?
how to modify it?

thanks a lot!!!

fly4412539

03-07-2008 08:42:06

do you have use skype to chat ??

my skype is fly19841014[/coloryo6mygw2]
add me to chat with you

are you ok?
thanks !

IvD

03-07-2008 08:53:54

Well you could hardcode it to always output 50 or something like that, but obviously getting a value similar to that of rt2x00 requires more work then just editing rtmp_info.c

Besides the value doesn't have a lot of meaning and there isn't a lot of purposes of reporting it, userspace applications shouldn't use it because the value is "dependent on the driver/hardware implementation" and can contain anything that the driver wants to report. In other words some put the rssi converted to a percentage in there, others the RX success count, or the TX success count, or a value reported by the hardware.
This makes the value not representative for anything useful.

fly4412539

03-07-2008 09:06:47

thanks first!

i know the information is not important for user.
but now , i want to design the UI ,which can see that information . so other users can see the information by the UI!

IvD

03-07-2008 09:09:52

Isn't Rutilt good enough?
And what added value has this value over the rssi value?

fly4412539

03-07-2008 09:11:49

thanks first!

i know the information is not important for user.
but now , i want to design the UI ,which can see that information . so other users can see the information by the UI![/quote2xcrg22z]



and i know this is not the problem of the hardware .
because i can see the information in the 2.6.24kernel which has the driver for rt73.
Cell 05 - Address 001839849126
ESSID"linksys"
ModeMaster
Channel11
Frequency2.462 GHz (Channel 11)
Quality=48/100 Signal level=-70 dBm
Encryption keyoff
Bit Rates1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Extratsf=00000000148bb931[/color2xcrg22z]

so i work hard to modify the driver to do that.

IvD

03-07-2008 11:20:26

I already explained why the in-kernel driver reports the value and the legacy driver doesn't.
So any assumptions about "the hardware is capable of it" is completely ignoring my previous explanations and means you should actually _read_ what I am replying to you.

I have also explained to you why that value is meaningless for a GUI, and there is already an existing GUI for the legacy driver. so I don't see any point in a second one. If you want RUtilT to show more information, then why don't you provide patches for that GUI to help the development of that instead of reinventing the wheel.

But as I said, I think what you need is add 1 line to the driver that returns a value of 42 for all received beacons...

fly4412539

04-07-2008 01:16:29

thanks IvD

i know your means. and also you have a good idea.

now i can see the that
Cell 01 - Address 001839849126
ESSID"linksys"
ModeManaged
Channel11
Encryption keyoff
Bit Rates0 kb/s
Quality75/100 Signal level-64 dBm Noise level-99 dBm[/color368b95sx]

but i also want to see the wpa information such as
IE WPA Version 1
Group Cipher TKIP
Pairwise Ciphers (2) CCMP TKIP
Authentication Suites (1) PSK
IE IEEE 802.11i/WPA2 Version 1
Group Cipher TKIP
Pairwise Ciphers (2) CCMP TKIP
Authentication Suites (1) PSK [/color368b95sx]

i am going on that .

thanks for your support!