mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 15:44:18 +00:00
Fixes for compiling against OpenWRT tree
This commit is contained in:
parent
6062df91a1
commit
28a8d26f11
@ -14,13 +14,10 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
#ifndef __DRV_CONF_H__
|
#ifndef __DRV_CONF_H__
|
||||||
#define __DRV_CONF_H__
|
#define __DRV_CONF_H__
|
||||||
#include "autoconf.h"
|
|
||||||
#include "hal_ic_cfg.h"
|
#include "hal_ic_cfg.h"
|
||||||
#if defined(PLATFORM_LINUX) && defined (PLATFORM_WINDOWS)
|
#include <generated/autoconf.h>
|
||||||
|
#include "rtl_autoconf.h"
|
||||||
|
|
||||||
#error "Shall be Linux or Windows, but not both!\n"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
#define CONFIG_RSSI_PRIORITY
|
#define CONFIG_RSSI_PRIORITY
|
||||||
#ifdef CONFIG_RTW_REPEATER_SON
|
#ifdef CONFIG_RTW_REPEATER_SON
|
||||||
#ifndef CONFIG_AP
|
#ifndef CONFIG_AP
|
||||||
|
@ -266,6 +266,7 @@ uint rtw_is_cckratesonly_included(u8 *rate)
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
static int search_p2p_wfd_ie(_adapter *padapter,
|
static int search_p2p_wfd_ie(_adapter *padapter,
|
||||||
struct iw_request_info *info, struct wlan_network *pnetwork,
|
struct iw_request_info *info, struct wlan_network *pnetwork,
|
||||||
char *start, char *stop)
|
char *start, char *stop)
|
||||||
@ -339,6 +340,7 @@ static int search_p2p_wfd_ie(_adapter *padapter,
|
|||||||
#endif /* CONFIG_P2P */
|
#endif /* CONFIG_P2P */
|
||||||
return _TRUE;
|
return _TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
static inline char *iwe_stream_mac_addr_proess(_adapter *padapter,
|
static inline char *iwe_stream_mac_addr_proess(_adapter *padapter,
|
||||||
struct iw_request_info *info, struct wlan_network *pnetwork,
|
struct iw_request_info *info, struct wlan_network *pnetwork,
|
||||||
char *start, char *stop, struct iw_event *iwe)
|
char *start, char *stop, struct iw_event *iwe)
|
||||||
@ -782,6 +784,7 @@ static inline char *iwe_stream_net_rsv_process(_adapter *padapter,
|
|||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
static char *translate_scan(_adapter *padapter,
|
static char *translate_scan(_adapter *padapter,
|
||||||
struct iw_request_info *info, struct wlan_network *pnetwork,
|
struct iw_request_info *info, struct wlan_network *pnetwork,
|
||||||
char *start, char *stop)
|
char *start, char *stop)
|
||||||
@ -1198,7 +1201,9 @@ exit:
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
static int rtw_wx_get_name(struct net_device *dev,
|
static int rtw_wx_get_name(struct net_device *dev,
|
||||||
struct iw_request_info *info,
|
struct iw_request_info *info,
|
||||||
union iwreq_data *wrqu, char *extra)
|
union iwreq_data *wrqu, char *extra)
|
||||||
@ -12023,6 +12028,7 @@ free_buf:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
static iw_handler rtw_handlers[] = {
|
static iw_handler rtw_handlers[] = {
|
||||||
NULL, /* SIOCSIWCOMMIT */
|
NULL, /* SIOCSIWCOMMIT */
|
||||||
rtw_wx_get_name, /* SIOCGIWNAME */
|
rtw_wx_get_name, /* SIOCGIWNAME */
|
||||||
@ -12346,7 +12352,9 @@ static iw_handler rtw_private_handler[] = {
|
|||||||
rtw_widi_set_probe_request, /* 0x1F */
|
rtw_widi_set_probe_request, /* 0x1F */
|
||||||
#endif /* CONFIG_INTEL_WIDI */
|
#endif /* CONFIG_INTEL_WIDI */
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
#if WIRELESS_EXT >= 17
|
#if WIRELESS_EXT >= 17
|
||||||
static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
|
static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
|
||||||
{
|
{
|
||||||
@ -12402,6 +12410,7 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
|
|||||||
return &padapter->iwstats;
|
return &padapter->iwstats;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_WIRELESS_EXT
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
struct iw_handler_def rtw_handlers_def = {
|
struct iw_handler_def rtw_handlers_def = {
|
||||||
@ -12417,7 +12426,6 @@ struct iw_handler_def rtw_handlers_def = {
|
|||||||
.get_wireless_stats = rtw_get_wireless_stats,
|
.get_wireless_stats = rtw_get_wireless_stats,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
/* copy from net/wireless/wext.c start
|
/* copy from net/wireless/wext.c start
|
||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
@ -12795,6 +12803,7 @@ exit:
|
|||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_COMPAT
|
#ifdef CONFIG_COMPAT
|
||||||
static int rtw_ioctl_compat_wext_private(struct net_device *dev, struct ifreq *rq)
|
static int rtw_ioctl_compat_wext_private(struct net_device *dev, struct ifreq *rq)
|
||||||
@ -12822,6 +12831,7 @@ static int rtw_ioctl_compat_wext_private(struct net_device *dev, struct ifreq *r
|
|||||||
}
|
}
|
||||||
#endif /* CONFIG_COMPAT */
|
#endif /* CONFIG_COMPAT */
|
||||||
|
|
||||||
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
static int rtw_ioctl_standard_wext_private(struct net_device *dev, struct ifreq *rq)
|
static int rtw_ioctl_standard_wext_private(struct net_device *dev, struct ifreq *rq)
|
||||||
{
|
{
|
||||||
struct iw_point *iwp;
|
struct iw_point *iwp;
|
||||||
@ -12886,3 +12896,6 @@ int rtw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
@ -1504,7 +1504,9 @@ static const struct net_device_ops rtw_netdev_ops = {
|
|||||||
#endif
|
#endif
|
||||||
.ndo_set_mac_address = rtw_net_set_mac_address,
|
.ndo_set_mac_address = rtw_net_set_mac_address,
|
||||||
.ndo_get_stats = rtw_net_get_stats,
|
.ndo_get_stats = rtw_net_get_stats,
|
||||||
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
.ndo_do_ioctl = rtw_ioctl,
|
.ndo_do_ioctl = rtw_ioctl,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -2810,7 +2812,9 @@ static const struct net_device_ops rtw_netdev_vir_if_ops = {
|
|||||||
.ndo_start_xmit = rtw_xmit_entry,
|
.ndo_start_xmit = rtw_xmit_entry,
|
||||||
.ndo_set_mac_address = rtw_net_set_mac_address,
|
.ndo_set_mac_address = rtw_net_set_mac_address,
|
||||||
.ndo_get_stats = rtw_net_get_stats,
|
.ndo_get_stats = rtw_net_get_stats,
|
||||||
|
#ifdef CONFIG_WIRELESS_EXT
|
||||||
.ndo_do_ioctl = rtw_ioctl,
|
.ndo_do_ioctl = rtw_ioctl,
|
||||||
|
#endif
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
|
||||||
.ndo_select_queue = rtw_select_queue,
|
.ndo_select_queue = rtw_select_queue,
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user