|
@@ -410,7 +410,7 @@ int rtl_regd_init(struct ieee80211_hw *hw,
|
|
struct wiphy *wiphy = hw->wiphy;
|
|
struct wiphy *wiphy = hw->wiphy;
|
|
struct country_code_to_enum_rd *country = NULL;
|
|
struct country_code_to_enum_rd *country = NULL;
|
|
|
|
|
|
- if (!wiphy || !&rtlpriv->regd)
|
|
|
|
|
|
+ if (!wiphy)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
/* init country_code from efuse channel plan */
|
|
/* init country_code from efuse channel plan */
|