diff --git a/Makefile b/Makefile index efa0872..2aa7eef 100755 --- a/Makefile +++ b/Makefile @@ -9,7 +9,10 @@ EXTRA_CFLAGS += -Wno-unused-function EXTRA_CFLAGS += -Wno-unused EXTRA_CFLAGS += -Wno-address EXTRA_CFLAGS += -Wno-cast-function-type -EXTRA_CFLAGS += -Wno-discarded-qualifiers +#EXTRA_CFLAGS += -Wno-discarded-qualifiers +EXTRA_CFLAGS += -Wno-uninitialized +EXTRA_CFLAGS += -Wno-sometimes-uninitialized +EXTRA_CFLAGS += -Wno-enum-conversion EXTRA_CFLAGS += -Wno-vla EXTRA_CFLAGS += -Wno-date-time @@ -19,7 +22,7 @@ ifeq ($(GCC_VER_49),1) EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later endif -EXTRA_CFLAGS += -I$(src)/include +EXTRA_CFLAGS += -I$(src)/include -I$(srctree)/$(src)/include EXTRA_LDFLAGS += --strip-debug @@ -226,10 +229,11 @@ _HAL_INTFS_FILES := hal/hal_intf.o \ hal/led/hal_$(HCI_NAME)_led.o -EXTRA_CFLAGS += -I$(src)/platform +EXTRA_CFLAGS += -I$(src)/platform -I$(srctree)/$(src)/platform _PLATFORM_FILES := platform/platform_ops.o -EXTRA_CFLAGS += -I$(src)/hal/btc +EXTRA_CFLAGS += -I$(src)/hal/btc -I$(srctree)/$(src)/hal/btc +EXTRA_CFLAGS += -I$(src)/hal/phydm -I$(srctree)/$(src)/hal/phydm ########### HAL_RTL8188E ################################# ifeq ($(CONFIG_RTL8188E), y) diff --git a/hal/hal_dm.c b/hal/hal_dm.c index 8836589..db68c5e 100644 --- a/hal/hal_dm.c +++ b/hal/hal_dm.c @@ -407,7 +407,7 @@ void rtw_hal_turbo_edca(_adapter *adapter) return; } - if ((pregpriv->wifi_spec == 1)) { /* || (pmlmeinfo->HT_enable == 0)) */ + if (pregpriv->wifi_spec == 1) { /* || (pmlmeinfo->HT_enable == 0)) */ precvpriv->is_any_non_be_pkts = _FALSE; return; } diff --git a/hal/hal_mp.c b/hal/hal_mp.c index 8616dcb..3d91510 100644 --- a/hal/hal_mp.c +++ b/hal/hal_mp.c @@ -171,7 +171,7 @@ void hal_mpt_CCKTxPowerAdjust(PADAPTER Adapter, BOOLEAN bInCH14) } else if (IS_HARDWARE_TYPE_8723D(Adapter)) { /* 2.4G CCK TX DFIR */ /* 2016.01.20 Suggest from RS BB mingzhi*/ - if ((u1Channel == 14)) { + if (u1Channel == 14) { phy_set_bb_reg(Adapter, rCCK0_TxFilter2, bMaskDWord, 0x0000B81C); phy_set_bb_reg(Adapter, rCCK0_DebugPort, bMaskDWord, 0x00000000); phy_set_bb_reg(Adapter, 0xAAC, bMaskDWord, 0x00003667); diff --git a/include/ieee80211.h b/include/ieee80211.h index 89d2eff..dd924ec 100644 --- a/include/ieee80211.h +++ b/include/ieee80211.h @@ -1535,7 +1535,7 @@ extern __inline int is_multicast_mac_addr(const u8 *addr) return (addr[0] != 0xff) && (0x01 & addr[0]); } -extern __inline int is_broadcast_mac_addr(const u8 *addr) +static __inline int is_broadcast_mac_addr(const u8 *addr) { return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \ (addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff)); diff --git a/os_dep/linux/ioctl_cfg80211.h b/os_dep/linux/ioctl_cfg80211.h index 01b6e76..16927e4 100644 --- a/os_dep/linux/ioctl_cfg80211.h +++ b/os_dep/linux/ioctl_cfg80211.h @@ -363,7 +363,7 @@ void rtw_cfg80211_deinit_rfkill(struct wiphy *wiphy); #define rtw_cfg80211_connect_result(wdev, bssid, req_ie, req_ie_len, resp_ie, resp_ie_len, status, gfp) cfg80211_connect_result(wdev_to_ndev(wdev), bssid, req_ie, req_ie_len, resp_ie, resp_ie_len, status, gfp) #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) && !defined(RHEL79)) -#define rtw_cfg80211_disconnected(wdev, reason, ie, ie_len, locally_generated, gfp) cfg80211_disconnected(wdev_to_ndev(wdev), reason, ie, ie_len, gfp) +#define rtw_cfg80211_disconnected(wdev, reason, ie, ie_len, locally_generated, gfp) cfg80211_disconnected(wdev_to_ndev(wdev), reason, ie, ie_len, ie_len, gfp) #else #define rtw_cfg80211_disconnected(wdev, reason, ie, ie_len, locally_generated, gfp) cfg80211_disconnected(wdev_to_ndev(wdev), reason, ie, ie_len, locally_generated, gfp) #endif diff --git a/os_dep/linux/rtw_cfgvendor.c b/os_dep/linux/rtw_cfgvendor.c index 40d5d39..c4cc53e 100644 --- a/os_dep/linux/rtw_cfgvendor.c +++ b/os_dep/linux/rtw_cfgvendor.c @@ -145,7 +145,7 @@ struct sk_buff *rtw_cfg80211_vendor_event_alloc( struct sk_buff *skb; #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) - skb = cfg80211_vendor_event_alloc(wiphy, len, event_id, gfp); + skb = cfg80211_vendor_event_alloc(wiphy, NULL, len, event_id, gfp); #else skb = cfg80211_vendor_event_alloc(wiphy, wdev, len, event_id, gfp); #endif