mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Remove code related to PLATFORM_FREEBSD
This commit is contained in:
@@ -423,7 +423,6 @@ struct ieee_ibss_seq {
|
||||
_list list;
|
||||
};
|
||||
|
||||
#if defined(PLATFORM_LINUX) || defined(CONFIG_RTL8711FW) || defined(PLATFORM_FREEBSD)
|
||||
|
||||
struct rtw_ieee80211_hdr {
|
||||
u16 frame_ctl;
|
||||
@@ -496,7 +495,6 @@ struct rtw_ieee80211s_hdr {
|
||||
u32 rann_interval;
|
||||
u32 rann_metric;
|
||||
} __attribute__((packed));
|
||||
#endif
|
||||
|
||||
enum eap_type {
|
||||
EAP_PACKET = 0,
|
||||
@@ -606,7 +604,6 @@ enum eap_type {
|
||||
|
||||
#define P80211_OUI_LEN 3
|
||||
|
||||
#if defined(PLATFORM_LINUX) || defined(CONFIG_RTL8711FW) || defined(PLATFORM_FREEBSD)
|
||||
|
||||
struct ieee80211_snap_hdr {
|
||||
|
||||
@@ -617,8 +614,6 @@ struct ieee80211_snap_hdr {
|
||||
|
||||
} __attribute__((packed));
|
||||
|
||||
#endif
|
||||
|
||||
#define SNAP_SIZE sizeof(struct ieee80211_snap_hdr)
|
||||
|
||||
#define WLAN_FC_GET_TYPE(fc) ((fc) & RTW_IEEE80211_FCTL_FTYPE)
|
||||
@@ -1001,7 +996,6 @@ struct ieee80211_frag_entry {
|
||||
u8 dst_addr[ETH_ALEN];
|
||||
};
|
||||
|
||||
#ifndef PLATFORM_FREEBSD /* Baron BSD has already defined */
|
||||
struct ieee80211_stats {
|
||||
uint tx_unicast_frames;
|
||||
uint tx_multicast_frames;
|
||||
@@ -1025,7 +1019,7 @@ struct ieee80211_stats {
|
||||
uint rx_message_in_msg_fragments;
|
||||
uint rx_message_in_bad_msg_fragments;
|
||||
};
|
||||
#endif /* PLATFORM_FREEBSD */
|
||||
|
||||
struct ieee80211_softmac_stats {
|
||||
uint rx_ass_ok;
|
||||
uint rx_ass_err;
|
||||
@@ -1294,8 +1288,6 @@ join_res:
|
||||
> 0: TID
|
||||
*/
|
||||
|
||||
#ifndef PLATFORM_FREEBSD /* Baron BSD has already defined */
|
||||
|
||||
enum ieee80211_state {
|
||||
|
||||
/* the card is not linked at all */
|
||||
@@ -1334,7 +1326,6 @@ enum ieee80211_state {
|
||||
IEEE80211_LINKED_SCANNING,
|
||||
|
||||
};
|
||||
#endif /* PLATFORM_FREEBSD */
|
||||
|
||||
#define DEFAULT_MAX_SCAN_AGE (15 * HZ)
|
||||
#define DEFAULT_FTS 2346
|
||||
@@ -1347,12 +1338,6 @@ enum ieee80211_state {
|
||||
#define PORT_FMT "%u"
|
||||
#define PORT_ARG(x) ntohs(*((u16 *)(x)))
|
||||
|
||||
#ifdef PLATFORM_FREEBSD /* Baron change func to macro */
|
||||
#define is_multicast_mac_addr(Addr) ((((Addr[0]) & 0x01) == 0x01) && ((Addr[0]) != 0xff))
|
||||
#define is_broadcast_mac_addr(Addr) ((((Addr[0]) & 0xff) == 0xff) && (((Addr[1]) & 0xff) == 0xff) && \
|
||||
(((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \
|
||||
(((Addr[5]) & 0xff) == 0xff))
|
||||
#else
|
||||
extern __inline int is_multicast_mac_addr(const u8 *addr)
|
||||
{
|
||||
return (addr[0] != 0xff) && (0x01 & addr[0]);
|
||||
@@ -1369,7 +1354,6 @@ extern __inline int is_zero_mac_addr(const u8 *addr)
|
||||
return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \
|
||||
(addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00));
|
||||
}
|
||||
#endif /* PLATFORM_FREEBSD */
|
||||
|
||||
#define CFG_IEEE80211_RESERVE_FCS (1<<0)
|
||||
#define CFG_IEEE80211_COMPUTE_FCS (1<<1)
|
||||
@@ -1578,9 +1562,8 @@ enum rtw_ieee80211_wnm_actioncode {
|
||||
|
||||
#define OUI_MICROSOFT 0x0050f2 /* Microsoft (also used in Wi-Fi specs)
|
||||
* 00:50:F2 */
|
||||
#ifndef PLATFORM_FREEBSD /* Baron BSD has defined */
|
||||
#define WME_OUI_TYPE 2
|
||||
#endif /* PLATFORM_FREEBSD */
|
||||
#define WME_OUI_TYPE 2
|
||||
|
||||
#define WME_OUI_SUBTYPE_INFORMATION_ELEMENT 0
|
||||
#define WME_OUI_SUBTYPE_PARAMETER_ELEMENT 1
|
||||
#define WME_OUI_SUBTYPE_TSPEC_ELEMENT 2
|
||||
|
||||
Reference in New Issue
Block a user