wlan: Correct the length field of tSirBssDescription structure

To calculate the length field of tSirBssDescription structure,
the driver needs to get offset of the ieFields field, which is
hard coded so far.
This change is to get the offset of the ieFields field with
OFFSET_OF macro.

Change-Id: Id0ef9296026357ced59aef43dc0c08f7dd17e7e6
CRs-Fixed: 1042248
diff --git a/CORE/MAC/src/pe/lim/limScanResultUtils.c b/CORE/MAC/src/pe/lim/limScanResultUtils.c
index cb63812..26b3b5b 100644
--- a/CORE/MAC/src/pe/lim/limScanResultUtils.c
+++ b/CORE/MAC/src/pe/lim/limScanResultUtils.c
@@ -157,11 +157,11 @@
     /**
      * Length of BSS desription is without length of
      * length itself and length of pointer
-     * that holds the next BSS description
+     * that holds ieFields
      */
     pBssDescr->length = (tANI_U16)(
-                    sizeof(tSirBssDescription) - sizeof(tANI_U16) -
-                    sizeof(tANI_U32) + ieLen);
+                    ((uintptr_t)OFFSET_OF(tSirBssDescription, ieFields)) -
+                    sizeof(pBssDescr->length) + ieLen);
 
     // Copy BSS Id
     vos_mem_copy((tANI_U8 *) &pBssDescr->bssId,