]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/mac80211/sta_info.h
mac80211: use bitfield macros for encoded rate
authorJohannes Berg <johannes.berg@intel.com>
Wed, 26 Apr 2017 12:51:20 +0000 (14:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 28 Apr 2017 08:41:58 +0000 (10:41 +0200)
commitdcba665b1f4a5e986f22ac4230d536341d3ea5da
tree8bb2a1b93cb7d5c41fa9a7a0cdd65120dcb713fe
parent8613c94815fcdd358638a22fed50c3f172042aa2
mac80211: use bitfield macros for encoded rate

Instead of hand-coding the bit manipulations, use the bitfield
macros to generate the code for the encoded bitrate.

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