staging: rtl8188eu: occurrence of the 5 GHz code marked

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>
This commit is contained in:
Ivan Safonov 2015-10-27 22:25:39 +07:00 committed by Greg Kroah-Hartman
parent b546c0f9c3
commit 32b5844e1f
1 changed files with 3 additions and 0 deletions

View 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)