Makes checkpatch happy. Signed-off-by: Kalle Valo <kv...@qca.qualcomm.com> --- drivers/net/wireless/ath/ath10k/mac.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index bd74c84..6d65511 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -667,22 +667,28 @@ static void ath10k_config_ps_iter(void *data, u8 *mac, struct ath10k_generic_iter *ar_iter = data; struct ieee80211_conf *conf = &ar_iter->ar->hw->conf; struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif); + enum wmi_sta_powersave_param param; enum wmi_sta_ps_mode psmode; + int ret; if (vif->type != NL80211_IFTYPE_STATION) return; if (conf->flags & IEEE80211_CONF_PS) { psmode = WMI_STA_PS_MODE_ENABLED; - ar_iter->ret = ath10k_wmi_set_sta_ps_param(ar_iter->ar, - arvif->vdev_id, - WMI_STA_PS_PARAM_INACTIVITY_TIME, - conf->dynamic_ps_timeout); - if (ar_iter->ret) { + param = WMI_STA_PS_PARAM_INACTIVITY_TIME; + + ret = ath10k_wmi_set_sta_ps_param(ar_iter->ar, + arvif->vdev_id, + param, + conf->dynamic_ps_timeout); + if (ret) { ath10k_warn("Failed to set inactivity time for VDEV: %d\n", arvif->vdev_id); return; } + + ar_iter->ret = ret; } else psmode = WMI_STA_PS_MODE_DISABLED; _______________________________________________ ath9k-devel mailing list ath9k-devel@lists.ath9k.org https://lists.ath9k.org/mailman/listinfo/ath9k-devel