|
@@ -562,7 +562,8 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
|
|
sme_start_bss_req->bssid.bytes,
|
|
|
&session_id, mac_ctx->lim.maxStation,
|
|
|
sme_start_bss_req->bssType,
|
|
|
- sme_start_bss_req->vdev_id);
|
|
|
+ sme_start_bss_req->vdev_id,
|
|
|
+ sme_start_bss_req->bssPersona);
|
|
|
if (!session) {
|
|
|
pe_warn("Session Can not be created");
|
|
|
ret_code = eSIR_SME_RESOURCES_UNAVAILABLE;
|
|
@@ -616,8 +617,6 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
|
|
(uint8_t *) &sme_start_bss_req->ssId,
|
|
|
(sme_start_bss_req->ssId.length + 1));
|
|
|
|
|
|
- session->bssType = sme_start_bss_req->bssType;
|
|
|
-
|
|
|
session->nwType = sme_start_bss_req->nwType;
|
|
|
|
|
|
session->beaconParams.beaconInterval =
|
|
@@ -626,11 +625,6 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
|
|
/* Store the oper freq in session Table */
|
|
|
session->curr_op_freq = sme_start_bss_req->oper_ch_freq;
|
|
|
|
|
|
- /* Store Persona */
|
|
|
- session->opmode = sme_start_bss_req->bssPersona;
|
|
|
- QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
|
|
|
- FL("PE PERSONA=%d"), session->opmode);
|
|
|
-
|
|
|
/* Update the phymode */
|
|
|
session->gLimPhyMode = sme_start_bss_req->nwType;
|
|
|
|
|
@@ -1330,7 +1324,8 @@ __lim_process_sme_join_req(struct mac_context *mac_ctx, void *msg_buf)
|
|
|
session = pe_create_session(mac_ctx, bss_desc->bssId,
|
|
|
&session_id, mac_ctx->lim.maxStation,
|
|
|
eSIR_INFRASTRUCTURE_MODE,
|
|
|
- sme_join_req->vdev_id);
|
|
|
+ sme_join_req->vdev_id,
|
|
|
+ sme_join_req->staPersona);
|
|
|
if (!session) {
|
|
|
pe_err("Session Can not be created");
|
|
|
ret_code = eSIR_SME_RESOURCES_UNAVAILABLE;
|
|
@@ -1365,7 +1360,6 @@ __lim_process_sme_join_req(struct mac_context *mac_ctx, void *msg_buf)
|
|
|
/* Copying of bssId is already done, while creating session */
|
|
|
sir_copy_mac_addr(session->self_mac_addr,
|
|
|
sme_join_req->self_mac_addr);
|
|
|
- session->bssType = sme_join_req->bsstype;
|
|
|
|
|
|
session->statypeForBss = STA_ENTRY_PEER;
|
|
|
session->limWmeEnabled = sme_join_req->isWMEenabled;
|
|
@@ -1410,20 +1404,11 @@ __lim_process_sme_join_req(struct mac_context *mac_ctx, void *msg_buf)
|
|
|
* self and peer rates
|
|
|
*/
|
|
|
session->supported_nss_1x1 = true;
|
|
|
- /*Store Persona */
|
|
|
- session->opmode = sme_join_req->staPersona;
|
|
|
- pe_debug("enable Smps: %d mode: %d send action: %d supported nss 1x1: %d opmode %d cbMode %d",
|
|
|
+ pe_debug("enable Smps: %d mode: %d send action: %d supported nss 1x1: %d cbMode %d nwType: %d dot11mode: %d force_24ghz_in_ht20 %d",
|
|
|
session->enableHtSmps, session->htSmpsvalue,
|
|
|
session->send_smps_action, session->supported_nss_1x1,
|
|
|
- session->opmode, sme_join_req->cbMode);
|
|
|
-
|
|
|
- /*Store Persona */
|
|
|
- session->opmode = sme_join_req->staPersona;
|
|
|
- QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
|
|
|
- FL("PE PERSONA=%d cbMode %u nwType: %d dot11mode: %d force_24ghz_in_ht20 %d"),
|
|
|
- session->opmode, sme_join_req->cbMode,
|
|
|
- session->nwType, session->dot11mode,
|
|
|
- sme_join_req->force_24ghz_in_ht20);
|
|
|
+ sme_join_req->cbMode, session->nwType,
|
|
|
+ session->dot11mode, sme_join_req->force_24ghz_in_ht20);
|
|
|
|
|
|
/* Copy oper freq to the session Table */
|
|
|
session->curr_op_freq = bss_desc->chan_freq;
|