[PATCH 12/21] staging: rtl8188eu: occurrence of the 5 GHz code marked

Ivan Safonov insafonov at gmail.com
Sat Oct 24 14:42:49 UTC 2015


Channel numbers greater than 14 are used here,
which are possible only for the 5 GHz frequency.

Signed-off-by: Ivan Safonov <insafonov at gmail.com>
---
 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
index a6295ca..821b8b5 100644
--- a/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
+++ b/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
@@ -446,6 +446,8 @@ static u8 Hal_GetChnlGroup88E(u8 chnl, u8 *pGroup)
 	} else {
 		bIn24G = false;
 
+		/* probably, this branch is suitable only for 5 GHz */
+
 		if (chnl <= 40)
 			*pGroup = 0;
 		else if (chnl <= 48)
-- 
2.4.10



More information about the devel mailing list