[PATCH 8/9] wcn36xx: Move DTIM to vif_priv struct
Eugene Krasnikov
k.eugene.e at gmail.com
Fri Sep 6 04:09:20 EDT 2013
This is where DTIM should be.
Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
main.c | 2 +-
smd.c | 5 +++--
wcn36xx.h | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/main.c b/main.c
index a4f564a..1d47ae3 100644
--- a/main.c
+++ b/main.c
@@ -504,7 +504,7 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw,
"mac bss changed dtim period %d\n",
bss_conf->dtim_period);
- wcn->dtim_period = bss_conf->dtim_period;
+ vif_priv->dtim_period = bss_conf->dtim_period;
}
if (changed & BSS_CHANGED_PS) {
diff --git a/smd.c b/smd.c
index 1251b3d..3495455 100644
--- a/smd.c
+++ b/smd.c
@@ -1102,6 +1102,7 @@ int wcn36xx_smd_config_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif,
struct wcn36xx_hal_config_bss_req_msg msg;
struct wcn36xx_hal_config_bss_params *bss;
struct wcn36xx_hal_config_sta_params *sta_params;
+ struct wcn36xx_vif *vif_priv = (struct wcn36xx_vif *)vif->drv_priv;
int ret = 0;
mutex_lock(&wcn->hal_mutex);
@@ -1149,7 +1150,7 @@ int wcn36xx_smd_config_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif,
bss->llg_coexist = 0;
bss->rifs_mode = 0;
bss->beacon_interval = vif->bss_conf.beacon_int;
- bss->dtim_period = wcn->dtim_period;
+ bss->dtim_period = vif_priv->dtim_period;
wcn36xx_smd_set_bss_ht_params(vif, sta, bss);
@@ -1494,7 +1495,7 @@ int wcn36xx_smd_enter_bmps(struct wcn36xx *wcn, struct ieee80211_vif *vif)
msg_body.bss_index = vif_priv->bss_index;
msg_body.tbtt = vif->bss_conf.sync_tsf;
- msg_body.dtim_period = wcn->dtim_period;
+ msg_body.dtim_period = vif_priv->dtim_period;
PREPARE_HAL_BUF(wcn->hal_buf, msg_body);
diff --git a/wcn36xx.h b/wcn36xx.h
index f32613d..fedfab2 100644
--- a/wcn36xx.h
+++ b/wcn36xx.h
@@ -116,6 +116,7 @@ struct wcn36xx_platform_ctrl_ops {
struct wcn36xx_vif {
struct list_head list;
struct wcn36xx_sta *sta;
+ u8 dtim_period;
u8 bss_index;
u8 ucast_dpu_signature;
/* Returned from WCN36XX_HAL_ADD_STA_SELF_RSP */
@@ -163,7 +164,6 @@ struct wcn36xx {
struct list_head vif_list;
struct wcn36xx_vif *current_vif;
struct wcn36xx_sta *sta;
- u8 dtim_period;
enum ani_ed_type encrypt_type;
u8 fw_revision;
--
1.8.2.2
More information about the wcn36xx
mailing list