mwifiex: refactor mwifiex_parse_htinfo() for reuse
authorBrian Norris <briannorris@chromium.org>
Fri, 7 Dec 2018 00:12:48 +0000 (16:12 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Dec 2018 14:55:05 +0000 (16:55 +0200)
commita256707fbd4b1d153d0152c502aa5b87837aeb6c
tree36fe2b99c21c9836158f900350c6148fc8604ebc
parent4cb777c64e030778c569f605398d7604d8aabc0f
mwifiex: refactor mwifiex_parse_htinfo() for reuse

This function converts some firmware-specific parameters into cfg80211
'rate_info' structures. It currently assumes it's dealing only with TX
bitrate, but the RX bitrate looks to be the same, so refactor this
function to be reusable.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c