staging: rtl8188eu: occurrence of the 5 GHz code marked
authorIvan Safonov <insafonov@gmail.com>
Tue, 27 Oct 2015 15:25:39 +0000 (22:25 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2015 00:09:08 +0000 (09:09 +0900)
Channel numbers greater than 14 are used here, which are possible only
for the 5 GHz frequency.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c

index 29353bf1884e044dc047177df94435917469c887..e3e5d6f5d4f9b137a6a175b2a31ae940d47fabf4 100644 (file)
@@ -444,6 +444,9 @@ static u8 Hal_GetChnlGroup88E(u8 chnl, u8 *pGroup)
                else if (chnl == 14)            /*  Channel 14 */
                        *pGroup = 5;
        } else {
+
+               /* probably, this branch is suitable only for 5 GHz */
+
                bIn24G = false;
 
                if (chnl <= 40)