]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix legacy and invalid rx-rate report
authorBen Greear <greearb@candelatech.com>
Wed, 14 Dec 2016 19:30:38 +0000 (11:30 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Dec 2016 09:54:48 +0000 (10:54 +0100)
commite8c6b8fd712965d81aa272a0f6127eb758fbcbeb
treecde48d7c029ceae44522406acf55e76866682fc5
parent18733316ac542f8a499b2ddddf530d51e5138c2c
mac80211: fix legacy and invalid rx-rate report

This fixes obtaining the rate info via sta_set_sinfo
when the rx rate is invalid (for instance, on IBSS
interface that has received no frames from one of its
peers).

Also initialize rinfo->flags for legacy rates, to not
rely on the whole sinfo being initialized to zero.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c