]> git.karo-electronics.de Git - linux-beck.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)
commita17d93ff3a950fefaea40e4a4bf3669b9137c533
treecde48d7c029ceae44522406acf55e76866682fc5
parentd8da0b5d64d58f7775a94bcf12dda50f13a76f22
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