diff options
author | Avinash Patil <patila@marvell.com> | 2015-01-28 05:24:18 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-01-29 03:21:57 -0500 |
commit | b0d4c5ec9730f7544772f50f84dc0dc730b1d551 (patch) | |
tree | fde6c3adec7708e0b04951151f9924285af16389 /drivers/net/wireless/mwifiex | |
parent | 35c739b50d78a2e2e5b08c53b3143d2c94d50412 (diff) |
mwifiex: update IEs after AP has started
This patch moves IE management routine to end of start_ap handler.
IEs now would be updated after AP has started.
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Qingshui Gao <gaoqs@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 8e0756473527..ceeaeac45007 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -1681,8 +1681,6 @@ static int mwifiex_cfg80211_start_ap(struct wiphy *wiphy, | |||
1681 | 1681 | ||
1682 | if (GET_BSS_ROLE(priv) != MWIFIEX_BSS_ROLE_UAP) | 1682 | if (GET_BSS_ROLE(priv) != MWIFIEX_BSS_ROLE_UAP) |
1683 | return -1; | 1683 | return -1; |
1684 | if (mwifiex_set_mgmt_ies(priv, ¶ms->beacon)) | ||
1685 | return -1; | ||
1686 | 1684 | ||
1687 | bss_cfg = kzalloc(sizeof(struct mwifiex_uap_bss_param), GFP_KERNEL); | 1685 | bss_cfg = kzalloc(sizeof(struct mwifiex_uap_bss_param), GFP_KERNEL); |
1688 | if (!bss_cfg) | 1686 | if (!bss_cfg) |
@@ -1783,6 +1781,9 @@ static int mwifiex_cfg80211_start_ap(struct wiphy *wiphy, | |||
1783 | return -1; | 1781 | return -1; |
1784 | } | 1782 | } |
1785 | 1783 | ||
1784 | if (mwifiex_set_mgmt_ies(priv, ¶ms->beacon)) | ||
1785 | return -1; | ||
1786 | |||
1786 | memcpy(&priv->bss_cfg, bss_cfg, sizeof(priv->bss_cfg)); | 1787 | memcpy(&priv->bss_cfg, bss_cfg, sizeof(priv->bss_cfg)); |
1787 | kfree(bss_cfg); | 1788 | kfree(bss_cfg); |
1788 | 1789 | ||