]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix and clean up cfg80211_gen_new_bssid()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2019 15:03:12 +0000 (16:03 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2019 15:54:08 +0000 (16:54 +0100)
commitc4966ddae86ec46878cdd4b398fa129bc76fc8f1
tree7ec88dd513155a9f0e799873f073366d5dcc460d
parenteca809e57afa48919688634ae34bdd8db6f07d84
cfg80211: fix and clean up cfg80211_gen_new_bssid()

Fix cfg80211_gen_new_bssid() to not rely on u64 modulo arithmetic,
which isn't needed since we really just want to mask there. Also,
clean it up to calculate the mask only once and use GENMASK_ULL()
instead of open-coding the mask calculation.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h