wlan: Fix array OOB for duplicate rate

Some IoT AP may have duplicate rates in supported rates and
extended rates in beacon, need filter them when populate peer 11a/11b
rates during connect/roaming, or array out of bound issue will happen.

Issue: SEC-3581
Change-Id: Id64b35d3b4ab55ce6962e2c9f3ed0b3e6b1d0ebe
CRs-Fixed: 3102432
(cherry picked from commit 3f82ab6e52dade45289642aec6cf96e6eec056d2)
1 file changed