|
@@ -2558,9 +2558,11 @@ lim_add_sta(struct mac_context *mac_ctx,
|
|
assoc_req =
|
|
assoc_req =
|
|
(tpSirAssocReq) session_entry->parsedAssocReq[aid];
|
|
(tpSirAssocReq) session_entry->parsedAssocReq[aid];
|
|
|
|
|
|
- add_sta_params->wpa_rsn = assoc_req->rsnPresent;
|
|
|
|
- add_sta_params->wpa_rsn |=
|
|
|
|
- (assoc_req->wpaPresent << 1);
|
|
|
|
|
|
+ if (assoc_req) {
|
|
|
|
+ add_sta_params->wpa_rsn = assoc_req->rsnPresent;
|
|
|
|
+ add_sta_params->wpa_rsn |=
|
|
|
|
+ (assoc_req->wpaPresent << 1);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|