wlan: reprogram skb data buffer if all the headroom is available

It has been seen that in certain scenarios the skb data buffer
is programmed in the the DMA engine in such a way that the skb
data buffer points to the skb tail pointer, in such cases the
dma engine will overwrite a memory region being referenced by
the skb tail pointer corrupting the memory. This can result in
various crashes, so before programming the DMA engine with data
buffere try to use the skb headroom when the error condition is
met, but if WLAN_BUG_ON_SKB_ERROR is defined panic the device
so that extra information can be obtained.

Change-Id: Ia76de4b572cf0198a8f3fa149ea72797d2096fcc
CRs-Fixed: 605122
2 files changed
tree: f1fc7cd3edb3904e3dfdc879f08a2cd351d46d47
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig