qcacld-2.0: Trim extn capability to max supported in change station

extn capabilities can be controlled by user, which can
be sent greater than the max supported value. This results
in stack overflow in change station command.

Add check to validate extn capability param given by user
and if it exceeds max supported value, set it to max supported
value.

FPIIM-1415

CRs-Fixed: 2044820
Change-Id: I531799dd06c41069e85ad969de6182363dbf9f05
Bug: 36817798
Signed-off-by: Srinivas Girigowda <sgirigow@codeaurora.org>
(cherry-picked from commit 3b118b2f8f0faf1e5fb2c0d9a91e9fd735428730)
1 file changed
tree: 396d81280c3fcbbfca6e6946c8aa6766aba52522
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile