* [PATCH 1/5] staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning.
@ 2017-05-13 16:41 Malcolm Priestley
2017-05-13 16:41 ` [PATCH 2/5] staging: rtl8192e: print alg name as debug Malcolm Priestley
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Malcolm Priestley @ 2017-05-13 16:41 UTC (permalink / raw)
To: gregkh; +Cc: linux-wireless, devel, Malcolm Priestley
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.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
drivers/staging/rtl8192e/rtllib_rx.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
index 43a77745e6fb..0033dc6979e7 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -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;
}
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/5] staging: rtl8192e: print alg name as debug.
2017-05-13 16:41 [PATCH 1/5] staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning Malcolm Priestley
@ 2017-05-13 16:41 ` Malcolm Priestley
2017-05-13 16:41 ` [PATCH 3/5] staging: rtl8192e: HTSetConnectBwMode message replace with debug Malcolm Priestley
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Malcolm Priestley @ 2017-05-13 16:41 UTC (permalink / raw)
To: gregkh; +Cc: linux-wireless, devel, Malcolm Priestley
alg name will be printed a number times during a connection it
is only really useful as a debug message.
Change to netdev_dbg.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
drivers/staging/rtl8192e/rtllib_wx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192e/rtllib_wx.c b/drivers/staging/rtl8192e/rtllib_wx.c
index c5c0d9676dc8..f7eba01b5d15 100644
--- a/drivers/staging/rtl8192e/rtllib_wx.c
+++ b/drivers/staging/rtl8192e/rtllib_wx.c
@@ -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) {
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/5] staging: rtl8192e: HTSetConnectBwMode message replace with debug.
2017-05-13 16:41 [PATCH 1/5] staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning Malcolm Priestley
2017-05-13 16:41 ` [PATCH 2/5] staging: rtl8192e: print alg name as debug Malcolm Priestley
@ 2017-05-13 16:41 ` Malcolm Priestley
2017-05-13 16:41 ` [PATCH 4/5] staging: rtl8192e: Let user know mac address associated with Malcolm Priestley
2017-05-13 16:41 ` [PATCH 5/5] staging: rtl8192e: _rtl92e_dm_check_edca_turbo remove peername message Malcolm Priestley
3 siblings, 0 replies; 5+ messages in thread
From: Malcolm Priestley @ 2017-05-13 16:41 UTC (permalink / raw)
To: gregkh; +Cc: linux-wireless, devel, Malcolm Priestley
The 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.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c
index 4ae1d382ac5c..f0e11726a72a 100644
--- a/drivers/staging/rtl8192e/rtl819x_HTProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c
@@ -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;
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/5] staging: rtl8192e: Let user know mac address associated with.
2017-05-13 16:41 [PATCH 1/5] staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning Malcolm Priestley
2017-05-13 16:41 ` [PATCH 2/5] staging: rtl8192e: print alg name as debug Malcolm Priestley
2017-05-13 16:41 ` [PATCH 3/5] staging: rtl8192e: HTSetConnectBwMode message replace with debug Malcolm Priestley
@ 2017-05-13 16:41 ` Malcolm Priestley
2017-05-13 16:41 ` [PATCH 5/5] staging: rtl8192e: _rtl92e_dm_check_edca_turbo remove peername message Malcolm Priestley
3 siblings, 0 replies; 5+ messages in thread
From: Malcolm Priestley @ 2017-05-13 16:41 UTC (permalink / raw)
To: gregkh; +Cc: linux-wireless, devel, Malcolm Priestley
User cannot tell which mac address(BSIDD) associated with so add
this to info message.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
drivers/staging/rtl8192e/rtllib_softmac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index eeda17d6409b..776e99741431 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -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);
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 5/5] staging: rtl8192e: _rtl92e_dm_check_edca_turbo remove peername message.
2017-05-13 16:41 [PATCH 1/5] staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning Malcolm Priestley
` (2 preceding siblings ...)
2017-05-13 16:41 ` [PATCH 4/5] staging: rtl8192e: Let user know mac address associated with Malcolm Priestley
@ 2017-05-13 16:41 ` Malcolm Priestley
3 siblings, 0 replies; 5+ messages in thread
From: Malcolm Priestley @ 2017-05-13 16:41 UTC (permalink / raw)
To: gregkh; +Cc: linux-wireless, devel, Malcolm Priestley
This 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.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
index 1a43c684f9f3..b8205ebafd72 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
@@ -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;
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-05-13 16:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-13 16:41 [PATCH 1/5] staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning Malcolm Priestley
2017-05-13 16:41 ` [PATCH 2/5] staging: rtl8192e: print alg name as debug Malcolm Priestley
2017-05-13 16:41 ` [PATCH 3/5] staging: rtl8192e: HTSetConnectBwMode message replace with debug Malcolm Priestley
2017-05-13 16:41 ` [PATCH 4/5] staging: rtl8192e: Let user know mac address associated with Malcolm Priestley
2017-05-13 16:41 ` [PATCH 5/5] staging: rtl8192e: _rtl92e_dm_check_edca_turbo remove peername message Malcolm Priestley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).