qcacld-3.0: Update nw_type of pe session when switching channel
In peer assoc command, the phy mode of peer is updated based on
the nw_type of pe session. So this value should accordingly as per
the new channel.
Change-Id: Ib596cb343f239456aba688b2b5ea7b19b3034a66
CRs-Fixed: 2161043
diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
index 705f106..13a0630 100644
--- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
@@ -4913,10 +4913,12 @@
session_entry->channelChangeReasonCode =
LIM_SWITCH_CHANNEL_OPERATION;
- pe_debug("switch old chnl %d to new chnl %d, ch_bw %d",
- session_entry->currentOperChannel,
- ch_change_req->targetChannel,
- ch_change_req->ch_width);
+ pe_debug("switch old chnl %d to new chnl %d, ch_bw %d, nw_type %d, dot11mode %d",
+ session_entry->currentOperChannel,
+ ch_change_req->targetChannel,
+ ch_change_req->ch_width,
+ ch_change_req->nw_type,
+ ch_change_req->dot11mode);
/* Store the New Channel Params in session_entry */
session_entry->ch_width = ch_change_req->ch_width;
@@ -4947,6 +4949,7 @@
session_entry->lim11hEnable = val;
session_entry->dot11mode = ch_change_req->dot11mode;
+ session_entry->nwType = ch_change_req->nw_type;
qdf_mem_copy(&session_entry->rateSet,
&ch_change_req->operational_rateset,
sizeof(session_entry->rateSet));