]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18a5c284039bdf68ef96cc17efe4ba9c54849206
tree8bb2a1b93cb7d5c41fa9a7a0cdd65120dcb713fe
parent62aaa670959e2ab92484a1206cafb351dac4f1b8
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