mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
rtl8723bs wifi: fix complie warnings
This commit is contained in:
@@ -1909,11 +1909,6 @@ phy_IQCalibrate_8723B(
|
||||
|
||||
u4Byte Path_SEL_BB;
|
||||
// u4Byte Path_SEL_BB, Path_SEL_RF;
|
||||
if( pAdapter->registrypriv.mp_mode == 1 && pAdapter->mppriv.mode == 3 )
|
||||
{
|
||||
DBG_871X("%s() :return !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n",__func__);
|
||||
return;
|
||||
}
|
||||
|
||||
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
|
||||
u4Byte retryCount = 2;
|
||||
@@ -1925,6 +1920,12 @@ if( pAdapter->registrypriv.mp_mode == 1 && pAdapter->mppriv.mode == 3 )
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if( pAdapter->registrypriv.mp_mode == 1 && pAdapter->mppriv.mode == 3 )
|
||||
{
|
||||
DBG_871X("%s() :return !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n",__func__);
|
||||
return;
|
||||
}
|
||||
|
||||
// Note: IQ calibration must be performed after loading
|
||||
// PHY_REG.txt , and radio_a, radio_b.txt
|
||||
|
||||
|
||||
@@ -474,6 +474,8 @@ static const struct ieee80211_regdomain *_rtw_regdomain_select(struct
|
||||
#endif
|
||||
}
|
||||
|
||||
typedef void (*reg_notifier_func) (struct wiphy *, struct regulatory_request *);
|
||||
|
||||
static int _rtw_regd_init_wiphy(struct rtw_regulatory *reg,
|
||||
struct wiphy *wiphy,
|
||||
int (*reg_notifier) (struct wiphy * wiphy,
|
||||
@@ -482,7 +484,7 @@ static int _rtw_regd_init_wiphy(struct rtw_regulatory *reg,
|
||||
{
|
||||
const struct ieee80211_regdomain *regd;
|
||||
|
||||
wiphy->reg_notifier = reg_notifier;
|
||||
wiphy->reg_notifier = (reg_notifier_func) reg_notifier;
|
||||
|
||||
wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY;
|
||||
wiphy->flags &= ~WIPHY_FLAG_STRICT_REGULATORY;
|
||||
@@ -544,4 +546,4 @@ int rtw_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request)
|
||||
|
||||
return _rtw_reg_notifier_apply(wiphy, request, reg);
|
||||
}
|
||||
#endif //CONFIG_IOCTL_CFG80211
|
||||
#endif //CONFIG_IOCTL_CFG80211
|
||||
|
||||
@@ -204,7 +204,7 @@ static int wifi_init_exit_module(int enable)
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_RKWIFI) && !defined(CONFIG_RTL8188EU) && !defined(CONFIG_ESP8089)
|
||||
if (type > 0) {
|
||||
if (type >= 0) {
|
||||
if (enable > 0)
|
||||
ret = rockchip_wifi_init_module();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user