]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: reg: Init wiphy_idx in regulatory_hint_core()
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 5 Sep 2018 05:06:12 +0000 (08:06 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 5 Sep 2018 08:07:53 +0000 (10:07 +0200)
commit6f05f94501fda0585bea9215093291c460d24691
treeeb6c915cac8bc82ee22ccbf8917a7e516460fc12
parentc9bdf05d75a28f66d81dee1ca8e7d16f9180ddc0
cfg80211: reg: Init wiphy_idx in regulatory_hint_core()

Core regulatory hints didn't set wiphy_idx to WIPHY_IDX_INVALID. Since
the regulatory request is zeroed, wiphy_idx was always implicitly set to
0. This resulted in updating only phy #0.
Fix that.

Fixes: 47b15119ec5b ("cfg80211: make regulatory_request use wiphy_idx instead of wiphy")
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
[add fixes tag]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c