wlan: Fix corruption of Beacon Frame due to probe resp template

While sending probe response template to HAL, SIR_MAX_PACKET_SIZE (2048)
is used to check the max length of probe response whole buffer size is
SCH_MAX_PROBE_RESP_SIZE (512) assigned during schInitGlobals.

So if the size of probe response template is greater than
SCH_MAX_PROBE_RESP_SIZE (512), the memcopy was corrupting the beacon
buffer and thus this corrupted beacon buffer was sent to firmware
which result in assert.

To fix this set SCH_MAX_PROBE_RESP_SIZE to 2048 and add sanity check
for beacon length while sending it to firmware.

Change-Id: I4e358c0cc2796adf25a5eaaef1307191a322561a
CRs-Fixed: 2187806
4 files changed
tree: 9c204f0fe3034ec814c96447180fb5511bdc5a97
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile