summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath6kl/cfg80211.c
diff options
context:
space:
mode:
authorEtay Luz <eluz@qca.qualcomm.com>2012-05-30 08:35:08 (GMT)
committerKalle Valo <kvalo@qca.qualcomm.com>2012-06-11 13:08:13 (GMT)
commitd154f32ebe3ffe9dea6ed0a91767883b1e7a6bc0 (patch)
treee5c80381990ae8195acb8f0847480c5aa0e9a45e /drivers/net/wireless/ath/ath6kl/cfg80211.c
parentf1ff32e8a8672d4d59283fb7f61f1431c2b9e434 (diff)
downloadlinux-fsl-qoriq-d154f32ebe3ffe9dea6ed0a91767883b1e7a6bc0.tar.xz
ath6kl: support changing dtim period on AP mode
This patch adds support for dtim_period configuration in beacon. kvalo: add a comment about ignoring the error, use vif_idx, add \n to the warning message Signed-off-by: Etay Luz <eluz@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/cfg80211.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index d212903..f00d377 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -2783,9 +2783,15 @@ static int ath6kl_start_ap(struct wiphy *wiphy, struct net_device *dev,
/* TODO:
* info->interval
- * info->dtim_period
*/
+ ret = ath6kl_wmi_ap_set_dtim_cmd(ar->wmi, vif->fw_vif_idx,
+ info->dtim_period);
+
+ /* ignore error, just print a warning and continue normally */
+ if (ret)
+ ath6kl_warn("Failed to set dtim_period in beacon: %d\n", ret);
+
if (info->beacon.head == NULL)
return -EINVAL;
mgmt = (struct ieee80211_mgmt *) info->beacon.head;