Fixed 2 warnings on Ubuntu

This commit is contained in:
kimocoder 2019-09-27 23:18:20 -07:00
parent 5660ab917e
commit 90d03c245c
3 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,6 @@
#endif /* CONFIG_IOCTL_CFG80211 */ #endif /* CONFIG_IOCTL_CFG80211 */
#include <hal_data.h> #include <hal_data.h>
struct mlme_handler mlme_sta_tbl[] = { struct mlme_handler mlme_sta_tbl[] = {
{WIFI_ASSOCREQ, "OnAssocReq", &OnAssocReq}, {WIFI_ASSOCREQ, "OnAssocReq", &OnAssocReq},
{WIFI_ASSOCRSP, "OnAssocRsp", &OnAssocRsp}, {WIFI_ASSOCRSP, "OnAssocRsp", &OnAssocRsp},
@ -94,14 +93,13 @@ struct action_handler OnAction_tbl[] = {
{RTW_WLAN_CATEGORY_P2P, "ACTION_P2P", &OnAction_p2p}, {RTW_WLAN_CATEGORY_P2P, "ACTION_P2P", &OnAction_p2p},
}; };
u8 null_addr[ETH_ALEN] = {0, 0, 0, 0, 0, 0}; u8 null_addr[ETH_ALEN] = {0, 0, 0, 0, 0, 0};
/************************************************** /**************************************************
OUI definitions for the vendor specific IE OUI definitions for the vendor specific IE
***************************************************/ ***************************************************/
unsigned char RTW_WPA_OUI[] = {0x00, 0x50, 0xf2, 0x01}; unsigned char RTW_WPA_OUI[] = {0x00, 0x50, 0xf2, 0x01};
unsigned char WMM_OUI[] = {0x00, 0x50, 0xf2, 0x02}; unsigned char WMM_OUI[] = {0x00, 0x50, 0xf2, 0x02};
unsigned char WPS_OUI[] = {0x00, 0x50, 0xf2, 0x04}; unsigned char WPS_OUI[] = {0x00, 0x50, 0xf2, 0x04};
unsigned char P2P_OUI[] = {0x50, 0x6F, 0x9A, 0x09}; unsigned char P2P_OUI[] = {0x50, 0x6F, 0x9A, 0x09};
unsigned char WFD_OUI[] = {0x50, 0x6F, 0x9A, 0x0A}; unsigned char WFD_OUI[] = {0x50, 0x6F, 0x9A, 0x0A};
@ -258,6 +256,7 @@ void rtw_txpwr_init_regd(struct rf_ctl_t *rfctl)
); );
if (rfctl->regd_name) if (rfctl->regd_name)
break; break;
// Intentional fallthrough
default: default:
rfctl->regd_name = regd_str(TXPWR_LMT_WW); rfctl->regd_name = regd_str(TXPWR_LMT_WW);
RTW_PRINT("assign %s for default case\n", regd_str(TXPWR_LMT_WW)); RTW_PRINT("assign %s for default case\n", regd_str(TXPWR_LMT_WW));

View File

@ -1,5 +1,5 @@
PACKAGE_NAME="realtek-rtl88xxau" PACKAGE_NAME="realtek-rtl88xxau"
PACKAGE_VERSION="5.6.4.1~20190919" PACKAGE_VERSION="5.6.4.1~20190928"
CLEAN="'make' clean" CLEAN="'make' clean"
BUILT_MODULE_NAME[0]=88XXau BUILT_MODULE_NAME[0]=88XXau
PROCS_NUM=`nproc` PROCS_NUM=`nproc`

View File

@ -84,7 +84,7 @@ static void rtw_init_wireless_mode(_adapter *padapter)
struct hal_spec_t *hal_spec = GET_HAL_SPEC(padapter); struct hal_spec_t *hal_spec = GET_HAL_SPEC(padapter);
if(hal_spec->proto_cap & PROTO_CAP_11B) if(hal_spec->proto_cap & PROTO_CAP_11B)
proto_wireless_mode |= WIRELESS_11B; proto_wireless_mode |= WIRELESS_11B;
if(hal_spec->proto_cap & PROTO_CAP_11G) if(hal_spec->proto_cap & PROTO_CAP_11G)
proto_wireless_mode |= WIRELESS_11G; proto_wireless_mode |= WIRELESS_11G;
#ifdef CONFIG_80211AC_VHT #ifdef CONFIG_80211AC_VHT
@ -103,7 +103,7 @@ static void rtw_init_wireless_mode(_adapter *padapter)
#endif #endif
#ifdef CONFIG_80211AC_VHT #ifdef CONFIG_80211AC_VHT
if(hal_spec->proto_cap & PROTO_CAP_11AC) if(hal_spec->proto_cap & PROTO_CAP_11AC)
proto_wireless_mode |= WIRELESS_11AC; proto_wireless_mode |= WIRELESS_11AC;
#endif #endif
padapter->registrypriv.wireless_mode &= proto_wireless_mode; padapter->registrypriv.wireless_mode &= proto_wireless_mode;
@ -119,7 +119,7 @@ void rtw_hal_def_value_init(_adapter *padapter)
padapter->hal_func.init_default_value(padapter); padapter->hal_func.init_default_value(padapter);
rtw_init_hal_com_default_value(padapter); rtw_init_hal_com_default_value(padapter);
#ifdef CONFIG_FW_MULTI_PORT_SUPPORT #ifdef CONFIG_FW_MULTI_PORT_SUPPORT
adapter_to_dvobj(padapter)->dft.port_id = 0xFF; adapter_to_dvobj(padapter)->dft.port_id = 0xFF;
adapter_to_dvobj(padapter)->dft.mac_id = 0xFF; adapter_to_dvobj(padapter)->dft.mac_id = 0xFF;
@ -1081,6 +1081,7 @@ s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload)
#endif #endif
case C2H_EXTEND: case C2H_EXTEND:
sub_id = payload[0]; sub_id = payload[0];
// Intentional fallthrough
/* no handle, goto default */ /* no handle, goto default */
default: default: