wlan: Fixed the compilation errors when enabling BUILD_DIAG_VERSION

Fixed the compilation errors when we enable BUILD_DIAG_VERSION to enable
the diag event&logging.

CRs-fixed: 482978
wlan: Revision 3.2.3.157A

Revision 3.2.3.157A