示例#1
0
int rtw_regd_init(_adapter * padapter,
		  void (*reg_notifier) (struct wiphy * wiphy,
				       struct regulatory_request * request))
{
	//struct registry_priv  *registrypriv = &padapter->registrypriv;
	struct wiphy *wiphy = padapter->rtw_wdev->wiphy;

#if 0
	if (rtw_regd == NULL) {
		rtw_regd = (struct rtw_regulatory *)
		    rtw_malloc(sizeof(struct rtw_regulatory));

		rtw_regd->alpha2[0] = '9';
		rtw_regd->alpha2[1] = '9';

		rtw_regd->country_code = COUNTRY_CODE_USER;
	}

	DBG_8192C("%s: Country alpha2 being used: %c%c\n",
		  __func__, rtw_regd->alpha2[0], rtw_regd->alpha2[1]);
#endif

	_rtw_regd_init_wiphy(NULL, wiphy, reg_notifier);

	return 0;
}
示例#2
0
int rtw_regd_init(_adapter * padapter,
                  void (*reg_notifier) (struct wiphy * wiphy,
                                        struct regulatory_request * request))
{
    //struct registry_priv  *registrypriv = &padapter->registrypriv;
    struct wiphy *wiphy = padapter->rtw_wdev->wiphy;
    _rtw_regd_init_wiphy(NULL, wiphy, reg_notifier);

    return 0;
}
示例#3
0
int rtw_regd_init(_adapter *padapter)
{
	struct wiphy *wiphy = padapter->rtw_wdev->wiphy;

#if 0
	if (rtw_regd == NULL) {
		rtw_regd = (struct rtw_regulatory *)
			   rtw_malloc(sizeof(struct rtw_regulatory));

		rtw_regd->alpha2[0] = '9';
		rtw_regd->alpha2[1] = '9';

		rtw_regd->country_code = COUNTRY_CODE_USER;
	}

	RTW_INFO("%s: Country alpha2 being used: %c%c\n",
		 __func__, rtw_regd->alpha2[0], rtw_regd->alpha2[1]);
#endif

	_rtw_regd_init_wiphy(NULL, wiphy);

	return 0;
}