diff options
author | Etay Luz <eluz@qca.qualcomm.com> | 2012-05-30 11:35:08 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-06-11 16:08:13 +0300 |
commit | d154f32ebe3ffe9dea6ed0a91767883b1e7a6bc0 (patch) | |
tree | e5c80381990ae8195acb8f0847480c5aa0e9a45e /drivers/net/wireless/ath/ath6kl/cfg80211.c | |
parent | f1ff32e8a8672d4d59283fb7f61f1431c2b9e434 (diff) | |
download | talos-obmc-linux-d154f32ebe3ffe9dea6ed0a91767883b1e7a6bc0.tar.gz talos-obmc-linux-d154f32ebe3ffe9dea6ed0a91767883b1e7a6bc0.zip |
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.c | 8 |
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 d2129030fd73..f00d377343d9 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; |