Commit 6c352cfd authored by Bhaskar Singh's avatar Bhaskar Singh Committed by Greg Kroah-Hartman
Browse files

staging: rtl8188eu: Removed code valid for 5GHz



This patch removes support for channels > 14. That is from the TODO which
says:

	-find and remove remaining code valid only for 5HGz. Most of
	obvious ones have been removed, but things like channel > 14 still
	exist.

Signed-off-by: default avatarBhaskar Singh <bhaskar.kernel@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0056d8bd
Loading
Loading
Loading
Loading
+7 −13
Original line number Diff line number Diff line
@@ -100,12 +100,7 @@ bool rtw_is_cckratesonly_included(u8 *rate)

int rtw_check_network_type(unsigned char *rate, int ratelen, int channel)
{
	if (channel > 14) {
		if (rtw_is_cckrates_included(rate))
			return WIRELESS_INVALID;
		else
			return WIRELESS_11A;
	} else {  /*  could be pure B, pure G, or B/G */
	/*  could be pure B, pure G, or B/G */
	if (rtw_is_cckratesonly_included(rate))
		return WIRELESS_11B;
	else if (rtw_is_cckrates_included(rate))
@@ -113,7 +108,6 @@ int rtw_check_network_type(unsigned char *rate, int ratelen, int channel)
	else
		return WIRELESS_11G;
}
}

u8 *rtw_set_fixed_ie(void *pbuf, unsigned int len, void *source,
		     unsigned int *frlen)