mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 11:53:01 +00:00
cfg80211: discard regulatory hints from country IEs with undefined wiphy
Regulatory hints are processed in a worker thread and by the time this thread gets a chance to schedule driver can deregister the wiphy on which the country IE was discovered. There is no need to process the hints which are coming from such invalid wiphy devices. Change-Id: I44f6f7b29ed1d0927151a88f3ea9e0c17044bd7e CRs-Fixed: 588103 Signed-off-by: Mihir Shete <smihir@codeaurora.org>
This commit is contained in:
parent
39e0d0b386
commit
051ac9bc35
|
@ -1557,7 +1557,8 @@ static void reg_process_hint(struct regulatory_request *reg_request,
|
||||||
if (reg_request->wiphy_idx != WIPHY_IDX_INVALID)
|
if (reg_request->wiphy_idx != WIPHY_IDX_INVALID)
|
||||||
wiphy = wiphy_idx_to_wiphy(reg_request->wiphy_idx);
|
wiphy = wiphy_idx_to_wiphy(reg_request->wiphy_idx);
|
||||||
|
|
||||||
if (reg_initiator == NL80211_REGDOM_SET_BY_DRIVER && !wiphy) {
|
if ((reg_initiator == NL80211_REGDOM_SET_BY_DRIVER ||
|
||||||
|
reg_initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) && !wiphy) {
|
||||||
kfree(reg_request);
|
kfree(reg_request);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue