qcacld-3.0: Fix logic to calculate max number of NSS supported

Logic to calculate max chainmask supported is used to calculate
max NSS and thus when NSS passed is 2 the firmware was sent value
3 which is causing firmware crash as max NSS supported is 2.

To fix, added logic that if NSS is greater than WMA_MAX_NSS(2) make
it WMA_MAX_NSS.

Change-Id: Ic7ff541b60434c0ce501d245462cd45e62dd9403
CRs-Fixed: 2033675
2 files changed
tree: 97e492c2bf61c1f84f1163eb4336dabfc2d616ed
  1. core/
  2. uapi/
  3. Android.mk
  4. Kbuild
  5. Kconfig
  6. Makefile
  7. README.txt