wlan: Reset RRM_BIT  mask in Reassoc request frames as per BSS

Currently, driver sends radio measurement info in reassoc request
without checking that current BSS supports radio measurement bit
as its capability info or not. In case if AP does not supprot
radio measurement  and STA sends it in reassoc request then, some
AP rejects all reassociation request that carries radio measurement
as capability info and results roaming failure.

Fix is to clear RRM_BIT from reassoc req frame if AP does not
support it.

Change-Id: I0f9e0161cc62d03a01abf69978bfa2eef5b6ab3a
CRs-Fixed: 2298462
diff --git a/CORE/MAC/src/pe/lim/limUtils.c b/CORE/MAC/src/pe/lim/limUtils.c
index 96ee524..547caff 100644
--- a/CORE/MAC/src/pe/lim/limUtils.c
+++ b/CORE/MAC/src/pe/lim/limUtils.c
@@ -8835,7 +8835,7 @@
  *
  * Update the capability info in Assoc/Reassoc request frames and reset
  * the spectrum management, short preamble, immediate block ack bits
- * if the BSS doesnot support it
+ * and rrm bit mask if the BSS doesnot support it
  *
  * Return: None
  */
@@ -8856,6 +8856,12 @@
           *caps &= (~LIM_IMMEDIATE_BLOCK_ACK_MASK);
           limLog(mac_ctx, LOG1, FL("Clearing Immed Blk Ack:no AP support"));
     }
+
+    if (!(bss_caps & LIM_RRM_BIT_MASK)) {
+          *caps &= (~LIM_RRM_BIT_MASK);
+          limLog(mac_ctx, LOG1,
+                 FL("Clearing radio measurement :no AP support"));
+    }
 }
 #ifdef SAP_AUTH_OFFLOAD
 /**