aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/cfg80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/cfg80211.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index 6d143e453f9e..bf5e7d519398 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -2760,6 +2760,7 @@ static int ath6kl_start_ap(struct wiphy *wiphy, struct net_device *dev,
2760 int res; 2760 int res;
2761 int i, ret; 2761 int i, ret;
2762 u16 rsn_capab = 0; 2762 u16 rsn_capab = 0;
2763 int inactivity_timeout = 0;
2763 2764
2764 ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s:\n", __func__); 2765 ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s:\n", __func__);
2765 2766
@@ -2896,8 +2897,15 @@ static int ath6kl_start_ap(struct wiphy *wiphy, struct net_device *dev,
2896 } 2897 }
2897 2898
2898 if (info->inactivity_timeout) { 2899 if (info->inactivity_timeout) {
2900
2901 inactivity_timeout = info->inactivity_timeout;
2902
2903 if (ar->hw.flags & ATH6KL_HW_AP_INACTIVITY_MINS)
2904 inactivity_timeout = DIV_ROUND_UP(inactivity_timeout,
2905 60);
2906
2899 res = ath6kl_wmi_set_inact_period(ar->wmi, vif->fw_vif_idx, 2907 res = ath6kl_wmi_set_inact_period(ar->wmi, vif->fw_vif_idx,
2900 info->inactivity_timeout); 2908 inactivity_timeout);
2901 if (res < 0) 2909 if (res < 0)
2902 return res; 2910 return res;
2903 } 2911 }