mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
Merge "cfg80211: discard regulatory hints from country IEs with undefined wiphy"
This commit is contained in:
commit
ad0a661a32
|
@ -1557,7 +1557,8 @@ static void reg_process_hint(struct regulatory_request *reg_request,
|
|||
if (reg_request->wiphy_idx != WIPHY_IDX_INVALID)
|
||||
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);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue