]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
wcn36xx: Restore BEACON_TEMPLATE_SIZE
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 14 Apr 2016 01:13:28 +0000 (18:13 -0700)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Fri, 22 Apr 2016 09:32:10 +0000 (11:32 +0200)
commitc5f3924be733cb5bc436a7aaec1fe48dcfc07f59
treec6a3cdfc18aff5a7ac02a689e9e2b923b51adb16
parent6bfb715ed71e6948d08b0205f721488bd764e65c
wcn36xx: Restore BEACON_TEMPLATE_SIZE

The BEACON_TEMPLATE_SIZE is used to describe the size of the beacon
template in SEND_BEACON_REQ as well as UPDATE_PROBE_RSP_TEMPLATE_REQ, in
the first case the beacon length is doubly encoded inside this buffer
while in the second its not.

Restore the BEACON_TEMPLATE_SIZE, to make UPDATE_PROBE_RSP_TEMPLATE_REQ
correct again and properly encode the double encoded length in the
SEND_BEACON_REQ case.

Also update the SEND_BEACON_REQ code path to mark the template size as
being the sum of the beacon size and the internal length marker.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/net/wireless/ath/wcn36xx/hal.h
drivers/net/wireless/ath/wcn36xx/smd.c