wil6210: allocate rx reorder buffer only if rx reorder is enabled
authorMaya Erez <merez@codeaurora.org>
Thu, 23 Aug 2018 11:47:09 +0000 (14:47 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 Aug 2018 13:48:36 +0000 (16:48 +0300)
commit686ab4f5bd8d696bfeef55ef761c7f7a6ad1b3ec
treeecbfea07811881cdcdcbf4b14beaa40b1b9b1f7f
parent596bdbcce90fa93f43ebcb99cefea34bd2e27707
wil6210: allocate rx reorder buffer only if rx reorder is enabled

wil_addba_rx_request allocates the rx reorder buffer regardless
of use_rx_hw_reordering settings.
Fix this by checking wil->use_rx_hw_reordering before allocating
the reorder buffer.

Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/rx_reorder.c