mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-05 21:56:08 +00:00
Minor fix + spacing
This commit is contained in:
parent
15b5ff9b56
commit
8b41ccda9a
@ -77,7 +77,6 @@
|
|||||||
|
|
||||||
#endif /* CONFIG_WAPI_SUPPORT */
|
#endif /* CONFIG_WAPI_SUPPORT */
|
||||||
|
|
||||||
|
|
||||||
static const u32 rtw_cipher_suites[] = {
|
static const u32 rtw_cipher_suites[] = {
|
||||||
WLAN_CIPHER_SUITE_WEP40,
|
WLAN_CIPHER_SUITE_WEP40,
|
||||||
WLAN_CIPHER_SUITE_WEP104,
|
WLAN_CIPHER_SUITE_WEP104,
|
||||||
@ -196,7 +195,6 @@ static struct ieee80211_channel rtw_5ghz_a_channels[] = {
|
|||||||
CHAN5G(216, 0),
|
CHAN5G(216, 0),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void rtw_2g_channels_init(struct ieee80211_channel *channels)
|
void rtw_2g_channels_init(struct ieee80211_channel *channels)
|
||||||
{
|
{
|
||||||
_rtw_memcpy((void *)channels, (void *)rtw_2ghz_channels,
|
_rtw_memcpy((void *)channels, (void *)rtw_2ghz_channels,
|
||||||
@ -471,7 +469,6 @@ struct cfg80211_bss *rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_net
|
|||||||
}
|
}
|
||||||
/* _exit_critical_bh(&pwdev_priv->scan_req_lock, &irqL); */
|
/* _exit_critical_bh(&pwdev_priv->scan_req_lock, &irqL); */
|
||||||
|
|
||||||
|
|
||||||
channel = pnetwork->network.Configuration.DSConfig;
|
channel = pnetwork->network.Configuration.DSConfig;
|
||||||
freq = rtw_ch2freq(channel);
|
freq = rtw_ch2freq(channel);
|
||||||
notify_channel = ieee80211_get_channel(wiphy, freq);
|
notify_channel = ieee80211_get_channel(wiphy, freq);
|
||||||
@ -524,7 +521,6 @@ struct cfg80211_bss *rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_net
|
|||||||
_rtw_memcpy(pwlanhdr->addr2, pnetwork->network.MacAddress, ETH_ALEN);
|
_rtw_memcpy(pwlanhdr->addr2, pnetwork->network.MacAddress, ETH_ALEN);
|
||||||
_rtw_memcpy(pwlanhdr->addr3, pnetwork->network.MacAddress, ETH_ALEN);
|
_rtw_memcpy(pwlanhdr->addr3, pnetwork->network.MacAddress, ETH_ALEN);
|
||||||
|
|
||||||
|
|
||||||
/* pbuf += sizeof(struct rtw_ieee80211_hdr_3addr); */
|
/* pbuf += sizeof(struct rtw_ieee80211_hdr_3addr); */
|
||||||
len = sizeof(struct rtw_ieee80211_hdr_3addr);
|
len = sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||||
_rtw_memcpy((pbuf + len), pnetwork->network.IEs, pnetwork->network.IELength);
|
_rtw_memcpy((pbuf + len), pnetwork->network.IEs, pnetwork->network.IELength);
|
||||||
@ -754,10 +750,10 @@ void rtw_cfg80211_indicate_connect(_adapter *padapter)
|
|||||||
}
|
}
|
||||||
|
|
||||||
check_bss:
|
check_bss:
|
||||||
if (!rtw_cfg80211_check_bss(padapter))
|
if (!rtw_cfg80211_check_bss(padapter)){
|
||||||
RTW_PRINT(FUNC_ADPT_FMT" BSS not found !!\n", FUNC_ADPT_ARG(padapter));
|
RTW_PRINT(FUNC_ADPT_FMT" BSS not found !!\n", FUNC_ADPT_ARG(padapter));
|
||||||
|
|
||||||
if (rtw_to_roam(padapter) > 0) {
|
}else if (rtw_to_roam(padapter) > 0) {
|
||||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39) || defined(COMPAT_KERNEL_RELEASE)
|
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39) || defined(COMPAT_KERNEL_RELEASE)
|
||||||
struct wiphy *wiphy = pwdev->wiphy;
|
struct wiphy *wiphy = pwdev->wiphy;
|
||||||
struct ieee80211_channel *notify_channel;
|
struct ieee80211_channel *notify_channel;
|
||||||
@ -894,7 +890,6 @@ void rtw_cfg80211_indicate_disconnect(_adapter *padapter, u16 reason, u8 locally
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_AP_MODE
|
#ifdef CONFIG_AP_MODE
|
||||||
static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_param *param, u32 param_len)
|
static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_param *param, u32 param_len)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user