Check if 'session' pointer is NULL before accessing it. Change-Id: I3bbcbe9b67ff7fa0e057fa27ad9fcf0a7098d862 CRs-Fixed: 3324998
@@ -1768,6 +1768,9 @@ lim_update_he_6ghz_band_caps(struct mac_context *mac,
#ifdef WLAN_FEATURE_11BE
static inline bool lim_is_session_eht_capable(struct pe_session *session)
{
+ if (!session)
+ return false;
+
return session->eht_capable;
}