Lines Matching refs:rtlpriv
351 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_regd_init() local
355 if (wiphy == NULL || &rtlpriv->regd == NULL) in rtl_regd_init()
359 rtlpriv->regd.country_code = COUNTRY_CODE_WORLD_WIDE_13; in rtl_regd_init()
361 RT_TRACE(rtlpriv, COMP_REGD, DBG_TRACE, in rtl_regd_init()
363 rtlpriv->regd.country_code)); in rtl_regd_init()
365 if (rtlpriv->regd.country_code >= COUNTRY_CODE_MAX) { in rtl_regd_init()
366 RT_TRACE(rtlpriv, COMP_REGD, DBG_DMESG, in rtl_regd_init()
370 rtlpriv->regd.country_code = COUNTRY_CODE_WORLD_WIDE_13; in rtl_regd_init()
373 country = _rtl_regd_find_country(rtlpriv->regd.country_code); in rtl_regd_init()
376 rtlpriv->regd.alpha2[0] = country->isoName[0]; in rtl_regd_init()
377 rtlpriv->regd.alpha2[1] = country->isoName[1]; in rtl_regd_init()
379 rtlpriv->regd.alpha2[0] = '0'; in rtl_regd_init()
380 rtlpriv->regd.alpha2[1] = '0'; in rtl_regd_init()
383 RT_TRACE(rtlpriv, COMP_REGD, DBG_TRACE, in rtl_regd_init()
385 rtlpriv->regd.alpha2[0], rtlpriv->regd.alpha2[1])); in rtl_regd_init()
387 _rtl_regd_init_wiphy(&rtlpriv->regd, wiphy, reg_notifier); in rtl_regd_init()
395 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_reg_notifier() local
397 RT_TRACE(rtlpriv, COMP_REGD, DBG_LOUD, ("\n")); in rtl_reg_notifier()
399 return _rtl_reg_notifier_apply(wiphy, request, &rtlpriv->regd); in rtl_reg_notifier()