mac80211: clean up rate info bandwidth setting
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Apr 2018 10:49:21 +0000 (13:49 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 7 May 2018 18:49:52 +0000 (20:49 +0200)
commit35f4962c01757db6cc1dcdf5526ec6e5afcb6245
treed581370b9600fe96268a06b622e45e4357563c5a
parentc096b92aa79e603995982c4d324a52ee02775b85
mac80211: clean up rate info bandwidth setting

There's no need to do the same thing three times in
the different switch cases, pull that out to a single
place.

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