Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6970cd44 authored by Xinming Hu's avatar Xinming Hu Committed by Kalle Valo
Browse files

mwifiex: display right transmit packet delay



drv_pkt_delay_max should be assigned non-zero value, so that
packet delay can be accumulate in the right way.

Signed-off-by: default avatarXinming Hu <huxm@marvell.com>
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 5b451715
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -298,6 +298,7 @@ struct mwifiex_tid_tbl {
#define WMM_HIGHEST_PRIORITY		7
#define WMM_HIGHEST_PRIORITY		7
#define HIGH_PRIO_TID				7
#define HIGH_PRIO_TID				7
#define LOW_PRIO_TID				0
#define LOW_PRIO_TID				0
#define MWIFIEX_WMM_DRV_DELAY_MAX 510


struct mwifiex_wmm_desc {
struct mwifiex_wmm_desc {
	struct mwifiex_tid_tbl tid_tbl_ptr[MAX_NUM_TID];
	struct mwifiex_tid_tbl tid_tbl_ptr[MAX_NUM_TID];
+1 −0
Original line number Original line Diff line number Diff line
@@ -438,6 +438,7 @@ mwifiex_wmm_init(struct mwifiex_adapter *adapter)
		mwifiex_set_ba_params(priv);
		mwifiex_set_ba_params(priv);
		mwifiex_reset_11n_rx_seq_num(priv);
		mwifiex_reset_11n_rx_seq_num(priv);


		priv->wmm.drv_pkt_delay_max = MWIFIEX_WMM_DRV_DELAY_MAX;
		atomic_set(&priv->wmm.tx_pkts_queued, 0);
		atomic_set(&priv->wmm.tx_pkts_queued, 0);
		atomic_set(&priv->wmm.highest_queued_prio, HIGH_PRIO_TID);
		atomic_set(&priv->wmm.highest_queued_prio, HIGH_PRIO_TID);
	}
	}