cfg80211.c (f1ff32e8a8672d4d59283fb7f61f1431c2b9e434) cfg80211.c (d154f32ebe3ffe9dea6ed0a91767883b1e7a6bc0)
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 2769 unchanged lines hidden (view full) ---

2778 return -EOPNOTSUPP;
2779
2780 res = ath6kl_set_ies(vif, &info->beacon);
2781
2782 ar->ap_mode_bkey.valid = false;
2783
2784 /* TODO:
2785 * info->interval
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 2769 unchanged lines hidden (view full) ---

2778 return -EOPNOTSUPP;
2779
2780 res = ath6kl_set_ies(vif, &info->beacon);
2781
2782 ar->ap_mode_bkey.valid = false;
2783
2784 /* TODO:
2785 * info->interval
2786 * info->dtim_period
2787 */
2788
2786 */
2787
2788 ret = ath6kl_wmi_ap_set_dtim_cmd(ar->wmi, vif->fw_vif_idx,
2789 info->dtim_period);
2790
2791 /* ignore error, just print a warning and continue normally */
2792 if (ret)
2793 ath6kl_warn("Failed to set dtim_period in beacon: %d\n", ret);
2794
2789 if (info->beacon.head == NULL)
2790 return -EINVAL;
2791 mgmt = (struct ieee80211_mgmt *) info->beacon.head;
2792 ies = mgmt->u.beacon.variable;
2793 if (ies > info->beacon.head + info->beacon.head_len)
2794 return -EINVAL;
2795 ies_len = info->beacon.head + info->beacon.head_len - ies;
2796

--- 934 unchanged lines hidden ---
2795 if (info->beacon.head == NULL)
2796 return -EINVAL;
2797 mgmt = (struct ieee80211_mgmt *) info->beacon.head;
2798 ies = mgmt->u.beacon.variable;
2799 if (ies > info->beacon.head + info->beacon.head_len)
2800 return -EINVAL;
2801 ies_len = info->beacon.head + info->beacon.head_len - ies;
2802

--- 934 unchanged lines hidden ---