On 2017-02-14 17:35, Johannes Berg wrote:
On Tue, 2017-02-14 at 14:21 +0900, Masashi Honma wrote:
Previously, bitrate showed uninitialized buffer when no rate info
found.
When would this happen?
I could see in mesh STA connection with 11n and legacy mixed.
STA A has disable_ht=1.
STA B has disable_ht=0.
> I'm not really sure this is right - perhaps we don't have
> RATE_INFO_BITRATE(32), but still have the MCS data?
I recognized there was a issue on such a case. I will send a patch to
wpa_supplicant. Anyway, showing string message is better than showing
raw binary data.
How about we just add "(unknown)" or so and not return here?
Yes. First time, I supposed to use "unknown". But in the function
parse_bitrate(), nla_parse_nested() returns message "failed to parse
nested rate attributes!". This explains why the bitrate is unknown. So I
used explaining message. We could see the message like this.
tx bitrate: No rate info found!
rx bitrate: 48.0 MBit/s
Masashi Honma.