mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-10-01 21:23:38 +00:00
minor updates
This commit is contained in:
parent
5f3bbbf007
commit
7d16a68513
@ -6266,11 +6266,15 @@ static int cfg80211_rtw_set_channel(struct wiphy *wiphy
|
||||
#endif
|
||||
, struct ieee80211_channel *chan, enum nl80211_channel_type channel_type)
|
||||
{
|
||||
#ifdef CONFIG_WIFI_MONITOR
|
||||
_adapter *padapter = wiphy_to_adapter(wiphy);
|
||||
#else /* CONFIG_WIFI_MONITOR */
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
|
||||
_adapter *padapter = (_adapter *)rtw_netdev_priv(ndev);
|
||||
#else
|
||||
_adapter *padapter = wiphy_to_adapter(wiphy);
|
||||
#endif
|
||||
#endif /* CONFIG_WIFI_MONITOR */
|
||||
int chan_target = (u8) ieee80211_frequency_to_channel(chan->center_freq);
|
||||
int chan_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
|
||||
int chan_width = CHANNEL_WIDTH_20;
|
||||
|
@ -200,7 +200,7 @@ int rtw_uapsd_ac_enable = 0x0;
|
||||
/*PHYDM API, must enable by default*/
|
||||
int rtw_pwrtrim_enable = 1;
|
||||
#else
|
||||
int rtw_pwrtrim_enable = 0; /* Default Enalbe power trim by efuse config */
|
||||
int rtw_pwrtrim_enable = 0; /* Default Enable power trim by efuse config */
|
||||
#endif
|
||||
|
||||
#if CONFIG_TX_AC_LIFETIME
|
||||
@ -3915,7 +3915,7 @@ int _netdev_open(struct net_device *pnetdev)
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
rtw_cfg80211_init_wdev_data(padapter);
|
||||
#endif
|
||||
/* rtw_netif_carrier_on(pnetdev); */ /* call this func when rtw_joinbss_event_callback return success */
|
||||
rtw_netif_carrier_on(pnetdev); /* call this func when rtw_joinbss_event_callback return success */
|
||||
rtw_netif_wake_queue(pnetdev);
|
||||
|
||||
#ifdef CONFIG_BR_EXT
|
||||
@ -4036,7 +4036,7 @@ int _netdev_open(struct net_device *pnetdev)
|
||||
rtw_set_pwr_state_check_timer(pwrctrlpriv);
|
||||
#endif
|
||||
|
||||
/* rtw_netif_carrier_on(pnetdev); */ /* call this func when rtw_joinbss_event_callback return success */
|
||||
rtw_netif_carrier_on(pnetdev); /* call this func when rtw_joinbss_event_callback return success */
|
||||
rtw_netif_wake_queue(pnetdev);
|
||||
|
||||
#ifdef CONFIG_BR_EXT
|
||||
|
Loading…
Reference in New Issue
Block a user