diff options
author | Taehee Yoo <ap420073@gmail.com> | 2015-01-21 02:58:19 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-01-27 12:51:49 -0500 |
commit | 33511b157bbcebaef853cc1811992b664a2e5862 (patch) | |
tree | 544bba4ed4e89f1a41e611a5fd3d573c9f65b501 /drivers/net/wireless/rtlwifi/core.c | |
parent | ea2325b89d16c0803714d48e28b116aec2ef5026 (diff) |
rtlwifi: add support to send beacon frame.
In AP mode, beacon frame is necessary to keep connection.
this patch adds a sending beacon frame routine in initialization routine.
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/core.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/core.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c index eb203163ed05..a31a12775f1a 100644 --- a/drivers/net/wireless/rtlwifi/core.c +++ b/drivers/net/wireless/rtlwifi/core.c | |||
@@ -1010,6 +1010,16 @@ static int rtl_op_conf_tx(struct ieee80211_hw *hw, | |||
1010 | return 0; | 1010 | return 0; |
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | static void send_beacon_frame(struct ieee80211_hw *hw, | ||
1014 | struct ieee80211_vif *vif) | ||
1015 | { | ||
1016 | struct rtl_priv *rtlpriv = rtl_priv(hw); | ||
1017 | struct sk_buff *skb = ieee80211_beacon_get(hw, vif); | ||
1018 | |||
1019 | if (skb) | ||
1020 | rtlpriv->intf_ops->adapter_tx(hw, NULL, skb, NULL); | ||
1021 | } | ||
1022 | |||
1013 | static void rtl_op_bss_info_changed(struct ieee80211_hw *hw, | 1023 | static void rtl_op_bss_info_changed(struct ieee80211_hw *hw, |
1014 | struct ieee80211_vif *vif, | 1024 | struct ieee80211_vif *vif, |
1015 | struct ieee80211_bss_conf *bss_conf, | 1025 | struct ieee80211_bss_conf *bss_conf, |
@@ -1040,6 +1050,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw, | |||
1040 | 1050 | ||
1041 | if (rtlpriv->cfg->ops->linked_set_reg) | 1051 | if (rtlpriv->cfg->ops->linked_set_reg) |
1042 | rtlpriv->cfg->ops->linked_set_reg(hw); | 1052 | rtlpriv->cfg->ops->linked_set_reg(hw); |
1053 | send_beacon_frame(hw, vif); | ||
1043 | } | 1054 | } |
1044 | } | 1055 | } |
1045 | if ((changed & BSS_CHANGED_BEACON_ENABLED && | 1056 | if ((changed & BSS_CHANGED_BEACON_ENABLED && |