qcacld-3.0: Fix logic to get nw type for BSS in roam sync indication

In lim_roam_fill_bss_descr the nw type for 11b AP is not filled and
thus network type remain 11a for 11b AP. Now this entry is added in
scan cache and when driver try to connect to this AP as the network
type is 11a, the preferred dot11mode is set to 11a for an 11g channel
in csr_get_phy_mode_from_bss.

Now while calculating phymode as channel is 11g and dot11mode is 11a
the phymode is not calculated properly, leading to firmware crash.

Fix the logic to calculate nw type properly in lim_roam_fill_bss_descr.

Change-Id: Ie076d0315a7ee5ec123a3cb9dbd22668648e7af4
CRs-Fixed: 2138824
1 file changed
tree: 36ba15091ebf4948f5e8212a66ee48512d779eb2
  1. components/
  2. core/
  3. uapi/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile
  8. README.txt