brcmfmac: fix regression in brcmf_sdio_txpkt_hdalign()
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Wed, 12 Jul 2017 09:32:48 +0000 (10:32 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 21 Jul 2017 07:40:48 +0000 (10:40 +0300)
commit0a16628212b8b0daac643b6a0f1caa4e9482afc8
treed2113442287c3e6406a68569c5df5eed6ecca449
parent96080f697786e0a30006fcbcc5b53f350fcb3e9f
brcmfmac: fix regression in brcmf_sdio_txpkt_hdalign()

Recent change in brcmf_sdio_txpkt_hdalign() changed the
behavior and now always returns 0. This resulted in a
regression which basically renders the device useless.

Fixes: 270a6c1f65fe ("brcmfmac: rework headroom check in .start_xmit()")
Reported-by: S. Gilles <sgilles@math.umd.edu>
Tested-by: S. Gilles <sgilles@math.umd.edu>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c