mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-29 08:27:41 +00:00
Fix compilation error on kernels < 3.19
This commit is contained in:
parent
ac2db9948d
commit
62c0f553ab
@ -4662,7 +4662,15 @@ exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev, struct station_del_parameters *params)
|
||||
static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev,
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0))
|
||||
u8 *mac
|
||||
#elif (LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0))
|
||||
const u8 *mac
|
||||
#else
|
||||
struct station_del_parameters *params
|
||||
#endif
|
||||
)
|
||||
{
|
||||
int ret = 0;
|
||||
_irqL irqL;
|
||||
@ -4676,7 +4684,11 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev
|
||||
|
||||
RTW_INFO("+"FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
|
||||
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0))
|
||||
target_mac = mac;
|
||||
#else
|
||||
target_mac = params->mac;
|
||||
#endif
|
||||
|
||||
if (check_fwstate(pmlmepriv, (_FW_LINKED | WIFI_AP_STATE | WIFI_MESH_STATE)) != _TRUE) {
|
||||
RTW_INFO("%s, fw_state != FW_LINKED|WIFI_AP_STATE|WIFI_MESH_STATE\n", __func__);
|
||||
|
Loading…
Reference in New Issue
Block a user