From e1e4ebd3ef063d02d644c276a73a7b88ad321220 Mon Sep 17 00:00:00 2001 From: GeorgeBannister Date: Thu, 26 Jan 2023 14:37:56 +0000 Subject: [PATCH] fix cfi trip from rtw_xmit_entry --- os_dep/linux/xmit_linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os_dep/linux/xmit_linux.c b/os_dep/linux/xmit_linux.c index ebbf1f0..f08dd8e 100644 --- a/os_dep/linux/xmit_linux.c +++ b/os_dep/linux/xmit_linux.c @@ -444,7 +444,7 @@ int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb) #endif /* CONFIG_TX_MCAST2UNI */ -int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev) +netdev_tx_t _rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev) { _adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev); struct xmit_priv *pxmitpriv = &padapter->xmitpriv; @@ -544,11 +544,11 @@ exit: return 0; } -int rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev) +netdev_tx_t rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev) { _adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev); struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); - int ret = 0; + netdev_tx_t ret = NETDEV_TX_OK; if (pkt) { if (check_fwstate(pmlmepriv, WIFI_MONITOR_STATE) == _TRUE) {