1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-26 15:14:02 +00:00

Removed some spaces

* Removed some spaces
This commit is contained in:
Christian kimocoder 2017-10-22 23:09:32 +02:00 committed by GitHub
parent 8c60bf3c77
commit 6cd1326878

View File

@ -18,20 +18,16 @@
* *
******************************************************************************/ ******************************************************************************/
#define _MLME_OSDEP_C_ #define _MLME_OSDEP_C_
#include <drv_types.h> #include <drv_types.h>
#ifdef RTK_DMP_PLATFORM #ifdef RTK_DMP_PLATFORM
void Linkup_workitem_callback(struct work_struct *work) void Linkup_workitem_callback(struct work_struct *work)
{ {
struct mlme_priv *pmlmepriv = container_of(work, struct mlme_priv, Linkup_workitem); struct mlme_priv *pmlmepriv = container_of(work, struct mlme_priv, Linkup_workitem);
_adapter *padapter = container_of(pmlmepriv, _adapter, mlmepriv); _adapter *padapter = container_of(pmlmepriv, _adapter, mlmepriv);
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 12)) #if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 12))
kobject_uevent(&padapter->pnetdev->dev.kobj, KOBJ_LINKUP); kobject_uevent(&padapter->pnetdev->dev.kobj, KOBJ_LINKUP);
#else #else
@ -45,8 +41,6 @@ void Linkdown_workitem_callback(struct work_struct *work)
struct mlme_priv *pmlmepriv = container_of(work, struct mlme_priv, Linkdown_workitem); struct mlme_priv *pmlmepriv = container_of(work, struct mlme_priv, Linkdown_workitem);
_adapter *padapter = container_of(pmlmepriv, _adapter, mlmepriv); _adapter *padapter = container_of(pmlmepriv, _adapter, mlmepriv);
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 12)) #if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 12))
kobject_uevent(&padapter->pnetdev->dev.kobj, KOBJ_LINKDOWN); kobject_uevent(&padapter->pnetdev->dev.kobj, KOBJ_LINKDOWN);
#else #else
@ -56,7 +50,6 @@ void Linkdown_workitem_callback(struct work_struct *work)
} }
#endif #endif
/* /*
void sitesurvey_ctrl_handler(void *FunctionContext) void sitesurvey_ctrl_handler(void *FunctionContext)
{ {
@ -74,14 +67,12 @@ void rtw_join_timeout_handler(void *FunctionContext)
_rtw_join_timeout_handler(adapter); _rtw_join_timeout_handler(adapter);
} }
void _rtw_scan_timeout_handler(void *FunctionContext) void _rtw_scan_timeout_handler(void *FunctionContext)
{ {
_adapter *adapter = (_adapter *)FunctionContext; _adapter *adapter = (_adapter *)FunctionContext;
rtw_scan_timeout_handler(adapter); rtw_scan_timeout_handler(adapter);
} }
void _dynamic_check_timer_handlder(void *FunctionContext) void _dynamic_check_timer_handlder(void *FunctionContext)
{ {
struct dvobj_priv *pdvobj = (struct dvobj_priv *)FunctionContext; struct dvobj_priv *pdvobj = (struct dvobj_priv *)FunctionContext;
@ -108,7 +99,6 @@ void _rtw_set_scan_deny_timer_hdl(void *FunctionContext)
} }
#endif #endif
void rtw_init_mlme_timer(_adapter *padapter) void rtw_init_mlme_timer(_adapter *padapter)
{ {
struct mlme_priv *pmlmepriv = &padapter->mlmepriv; struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
@ -157,7 +147,6 @@ void rtw_os_indicate_connect(_adapter *adapter)
_set_workitem(&adapter->mlmepriv.Linkup_workitem); _set_workitem(&adapter->mlmepriv.Linkup_workitem);
#endif #endif
} }
extern void indicate_wx_scan_complete_event(_adapter *padapter); extern void indicate_wx_scan_complete_event(_adapter *padapter);
@ -237,7 +226,6 @@ void rtw_os_indicate_disconnect(_adapter *adapter, u16 reason, u8 locally_gener
{ {
/* RT_PMKID_LIST backupPMKIDList[NUM_PMKID_CACHE]; */ /* RT_PMKID_LIST backupPMKIDList[NUM_PMKID_CACHE]; */
netif_carrier_off(adapter->pnetdev); /* Do it first for tx broadcast pkt after disconnection issue! */ netif_carrier_off(adapter->pnetdev); /* Do it first for tx broadcast pkt after disconnection issue! */
#ifdef CONFIG_IOCTL_CFG80211 #ifdef CONFIG_IOCTL_CFG80211
@ -252,7 +240,6 @@ void rtw_os_indicate_disconnect(_adapter *adapter, u16 reason, u8 locally_gener
/* modify for CONFIG_IEEE80211W, none 11w also can use the same command */ /* modify for CONFIG_IEEE80211W, none 11w also can use the same command */
rtw_reset_securitypriv_cmd(adapter); rtw_reset_securitypriv_cmd(adapter);
} }
void rtw_report_sec_ie(_adapter *adapter, u8 authmode, u8 *sec_ie) void rtw_report_sec_ie(_adapter *adapter, u8 authmode, u8 *sec_ie)
@ -261,8 +248,6 @@ void rtw_report_sec_ie(_adapter *adapter, u8 authmode, u8 *sec_ie)
u8 *buff, *p, i; u8 *buff, *p, i;
union iwreq_data wrqu; union iwreq_data wrqu;
buff = NULL; buff = NULL;
if (authmode == _WPA_IE_ID_) { if (authmode == _WPA_IE_ID_) {
@ -297,7 +282,6 @@ void rtw_report_sec_ie(_adapter *adapter, u8 authmode, u8 *sec_ie)
rtw_mfree(buff, IW_CUSTOM_MAX); rtw_mfree(buff, IW_CUSTOM_MAX);
} }
} }
void _survey_timer_hdl(void *FunctionContext) void _survey_timer_hdl(void *FunctionContext)
@ -384,7 +368,6 @@ void rtw_indicate_sta_assoc_event(_adapter *padapter, struct sta_info *psta)
if (pstapriv->sta_aid[psta->aid - 1] != psta) if (pstapriv->sta_aid[psta->aid - 1] != psta)
return; return;
wrqu.addr.sa_family = ARPHRD_ETHER; wrqu.addr.sa_family = ARPHRD_ETHER;
_rtw_memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN); _rtw_memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN);
@ -411,7 +394,6 @@ void rtw_indicate_sta_disassoc_event(_adapter *padapter, struct sta_info *psta)
if (pstapriv->sta_aid[psta->aid - 1] != psta) if (pstapriv->sta_aid[psta->aid - 1] != psta)
return; return;
wrqu.addr.sa_family = ARPHRD_ETHER; wrqu.addr.sa_family = ARPHRD_ETHER;
_rtw_memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN); _rtw_memcpy(wrqu.addr.sa_data, psta->hwaddr, ETH_ALEN);
@ -424,7 +406,6 @@ void rtw_indicate_sta_disassoc_event(_adapter *padapter, struct sta_info *psta)
} }
#ifdef CONFIG_HOSTAPD_MLME #ifdef CONFIG_HOSTAPD_MLME
static int mgnt_xmit_entry(struct sk_buff *skb, struct net_device *pnetdev) static int mgnt_xmit_entry(struct sk_buff *skb, struct net_device *pnetdev)
@ -443,7 +424,6 @@ static int mgnt_netdev_open(struct net_device *pnetdev)
RTW_INFO("mgnt_netdev_open: MAC Address:" MAC_FMT "\n", MAC_ARG(pnetdev->dev_addr)); RTW_INFO("mgnt_netdev_open: MAC Address:" MAC_FMT "\n", MAC_ARG(pnetdev->dev_addr));
init_usb_anchor(&phostapdpriv->anchored); init_usb_anchor(&phostapdpriv->anchored);
rtw_netif_wake_queue(pnetdev); rtw_netif_wake_queue(pnetdev);
@ -536,15 +516,11 @@ int hostapd_mode_init(_adapter *padapter)
pnetdev->features |= NETIF_F_IP_CSUM; pnetdev->features |= NETIF_F_IP_CSUM;
#endif #endif
if (dev_alloc_name(pnetdev, "mgnt.wlan%d") < 0) if (dev_alloc_name(pnetdev, "mgnt.wlan%d") < 0)
RTW_INFO("hostapd_mode_init(): dev_alloc_name, fail!\n"); RTW_INFO("hostapd_mode_init(): dev_alloc_name, fail!\n");
/* SET_NETDEV_DEV(pnetdev, pintfpriv->udev); */ /* SET_NETDEV_DEV(pnetdev, pintfpriv->udev); */
mac[0] = 0x00; mac[0] = 0x00;
mac[1] = 0xe0; mac[1] = 0xe0;
mac[2] = 0x4c; mac[2] = 0x4c;
@ -554,10 +530,8 @@ int hostapd_mode_init(_adapter *padapter)
_rtw_memcpy(pnetdev->dev_addr, mac, ETH_ALEN); _rtw_memcpy(pnetdev->dev_addr, mac, ETH_ALEN);
netif_carrier_off(pnetdev); netif_carrier_off(pnetdev);
/* Tell the network stack we exist */ /* Tell the network stack we exist */
if (register_netdev(pnetdev) != 0) { if (register_netdev(pnetdev) != 0) {
RTW_INFO("hostapd_mode_init(): register_netdev fail!\n"); RTW_INFO("hostapd_mode_init(): register_netdev fail!\n");