staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning.
PATCH 1/5 staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning.
RX will receive countless EAPOL frames over the life of the connection.
A number of conditional calls to rtllib_is_eapol_frame are made in this function.
So this call serves no purpose other than to spam logs with false warning that it is indeed a EAPOL frame, remove it.
--- drivers/staging/rtl8192e/rtllib_rx.c | 3 --- 1 file changed, 3 deletions(-)
drivers/staging/rtl8192e/rtllib_rx.c +0 -3
@@ -1214,9 +1214,6 @@ static int rtllib_rx_decrypt(struct rtllib_device *ieee, struct sk_buff *skb,return -1 ; } -if (rtllib_is_eapol_frame (ieee, skb, hdrlen)) -netdev_warn (ieee->dev,"RX: IEEE802.1X EAPOL frame!\n" ); -return 0 ; }
Signature · 1 line
2.11.0
PATCH 2/5 staging: rtl8192e: print alg name as debug.
alg name will be printed a number times during a connection it is only really useful as a debug message.
Change to netdev_dbg.
--- drivers/staging/rtl8192e/rtllib_wx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib_wx.c +1 -1
@@ -595,7 +595,7 @@ int rtllib_wx_set_encode_ext(struct rtllib_device *ieee, ret = -EINVAL ; goto done; } -netdev_info (dev,"alg name:%s\n" , alg); +netdev_dbg (dev,"alg name:%s\n" , alg); ops =lib80211_get_crypto_ops (alg);if (ops ==NULL ) {
Signature · 1 line
2.11.0
PATCH 3/5 staging: rtl8192e: HTSetConnectBwMode message replace with debug.
In reply to Malcolm PriestleyThe flag status of bCurBW40MHz is printed as info and is only useful as debug message.
Replace with netdev_dbg in line with rest of driver.
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -908,8 +908,8 @@ void HTSetConnectBwMode(struct rtllib_device *ieee, pHTInfo->CurSTAExtChnlOffset =HT_EXTCHNL_OFFSET_NO_EXT ; } -pr_info ("%s():pHTInfo->bCurBW40MHz:%x\n" , __func__, - pHTInfo->bCurBW40MHz); +netdev_dbg (ieee->dev,"%s():pHTInfo->bCurBW40MHz:%x\n" , __func__, + pHTInfo->bCurBW40MHz); pHTInfo->bSwBwInProgress = true;
Signature · 1 line
2.11.0
PATCH 4/5 staging: rtl8192e: Let user know mac address associated with.
In reply to Malcolm PriestleyUser cannot tell which mac address(BSIDD) associated with so add this to info message.
--- drivers/staging/rtl8192e/rtllib_softmac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib_softmac.c +2 -1
@@ -1525,7 +1525,8 @@ static void rtllib_associate_complete_wq(void *data) associate_complete_wq);struct rt_pwr_save_ctrl *pPSC = &(ieee->PowerSaveControl); -netdev_info (ieee->dev,"Associated successfully\n" ); +netdev_info (ieee->dev,"Associated successfully with %pM\n" , + ieee->current_network.bssid);if (!ieee->is_silent_reset) {netdev_info (ieee->dev,"normal associate\n" );notify_wx_assoc_event (ieee);
Signature · 1 line
2.11.0
PATCH 5/5 staging: rtl8192e: _rtl92e_dm_check_edca_turbo remove peername message.
In reply to Malcolm PriestleyThis kinda reports this as if it was an error message.
Now that bssid is reported at associate remove this piece of code serves no purpose as there is no code for peers so remove it.
--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 16 ---------------- 1 file changed, 16 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +0 -16
@@ -1693,22 +1693,6 @@ static void _rtl92e_dm_check_edca_turbo(struct net_device *dev)if (priv->rtllib->pHTInfo->IOTAction &HT_IOT_ACT_DISABLE_EDCA_TURBO ) goto dm_CheckEdcaTurbo_EXIT; - { -u8 *peername[11 ] = { -"unknown" ,"realtek_90" ,"realtek_92se" ,"broadcom" , -"ralink" ,"atheros" ,"cisco" ,"marvell" ,"92u_softap" , -"self_softap" - }; -static int wb_tmp; - -if (wb_tmp ==0 ) { -netdev_info (dev, -"%s():iot peer is %s, bssid: %pM\n" , - __func__, peername[pHTInfo->IOTPeer], - priv->rtllib->current_network.bssid); - wb_tmp =1 ; - } - }if (!priv->rtllib->bis_any_nonbepkts) { curTxOkCnt = priv->stats.txbytesunicast - lastTxOkCnt; curRxOkCnt = priv->stats.rxbytesunicast - lastRxOkCnt;
Signature · 1 line
2.11.0