cfg80211: reg: Refactor calculation of bandwidth flags
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 23 Nov 2015 18:27:16 +0000 (19:27 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
commit1aeb135f84fe40cf6ba1e3610ad2ca4cb9628089
tree9da0d40fb512723099e1beb924695078b31e3657
parentaaa016ccd5df89d73483d0d51ee1f692978ccc35
cfg80211: reg: Refactor calculation of bandwidth flags

The same piece of code appears at two places. Make a function from it.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c