fix a glitch in rtl8189xx patch for 5.11.y

This commit is contained in:
Martin Ayotte 2021-02-28 19:38:58 -05:00
parent be82bb2b78
commit 6fe97da4ac

View File

@ -169,7 +169,8 @@ index 154a28f..0be580c 100644
+ if (wiphy) {
struct regulatory_request request;
request.initiator = NL80211_REGDOM_SET_BY_DRIVER;
rtw_reg_notifier(adapter->rtw_wdev->wiphy, &request);
- rtw_reg_notifier(adapter->rtw_wdev->wiphy, &request);
+ rtw_reg_notifier(wiphy, &request);
@@ -521,28 +521,9 @@ static struct country_code_to_enum_rd *_rtw_regd_find_country(u16 countrycode)
return NULL;
}