rtlwifi: Add encryption argument in rtl_is_special_data for checking DHCP packet.
authorTaehee Yoo <ap420073@gmail.com>
Fri, 27 Mar 2015 15:22:39 +0000 (00:22 +0900)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 7 Apr 2015 17:09:04 +0000 (20:09 +0300)
commitcad737dfde3566e3293e884e8b391e2cae7e8068
tree55f5cf4c3c228d9848a23789ee861285df5443b9
parent00ca18034f62a6a3f29b8e660198e4ea573f2657
rtlwifi: Add encryption argument in rtl_is_special_data for checking DHCP packet.

rtl8192cu can't connect to AP after physical reconnect.
according to dmesg, that problem's cause was DHCP timeout.

rtl_is_special_data function checks packet type for adjusting rate.
when that function is called from _rtl_rc_get_highest_rix, it can not
calculate offset correctly. so i add argument is_encn in rtl_is_special_data.
is_enc variable mean that iv header is added in skb parameter.

i test only rtl8192cu chipset. because i doesn't have other rtlwifi chipsets.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/base.c
drivers/net/wireless/rtlwifi/base.h
drivers/net/wireless/rtlwifi/pci.c
drivers/net/wireless/rtlwifi/rc.c