qcacld-2.0: Bounds check key length in __iw_set_ap_encodeext

propagation from qcacld-3.0 to qcacld-2.0

__iw_set_ap_encodeext iterates over a key buffer based on a length that
may be larger than the key buffer size. Bounds check the key length
before iterating over the buffer, and reject the call if the length is
too large.

Change-Id: I2473905500470ab6c4e83f5822949bbc9d94f5f1
CRs-Fixed: 2165803
1 file changed
tree: 1fc205241291871ceded20130a7d66d992284f45
  1. CORE/
  2. firmware_bin/
  3. wcnss/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile