cfg80211: only pass sband to set_mandatory_flags_band()
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Wed, 4 Jan 2017 10:53:37 +0000 (10:53 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 5 Jan 2017 11:58:03 +0000 (12:58 +0100)
commit343884c87e5a928193796415280269e723f951c7
treec2122f62375cb7fe7daec1dee3faf95741362607
parent5ec71dd7f1b63da20fefebabf1e66cb530b9eb4d
cfg80211: only pass sband to set_mandatory_flags_band()

The supported band structure contains the band is applies to
so no need to pass it separately. Also added a default case
to the switch for completeness. The current code base does not
call this function with NUM_NL80211_BANDS but kept that case
statement although default case would cover that.

Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c