mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-05-18 13:14:28 +00:00
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>
This commit is contained in:
parent
ea2325b89d
commit
33511b157b
1 changed files with 11 additions and 0 deletions
|
@ -1010,6 +1010,16 @@ static int rtl_op_conf_tx(struct ieee80211_hw *hw,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void send_beacon_frame(struct ieee80211_hw *hw,
|
||||||
|
struct ieee80211_vif *vif)
|
||||||
|
{
|
||||||
|
struct rtl_priv *rtlpriv = rtl_priv(hw);
|
||||||
|
struct sk_buff *skb = ieee80211_beacon_get(hw, vif);
|
||||||
|
|
||||||
|
if (skb)
|
||||||
|
rtlpriv->intf_ops->adapter_tx(hw, NULL, skb, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
|
static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
|
||||||
struct ieee80211_vif *vif,
|
struct ieee80211_vif *vif,
|
||||||
struct ieee80211_bss_conf *bss_conf,
|
struct ieee80211_bss_conf *bss_conf,
|
||||||
|
@ -1040,6 +1050,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
|
||||||
|
|
||||||
if (rtlpriv->cfg->ops->linked_set_reg)
|
if (rtlpriv->cfg->ops->linked_set_reg)
|
||||||
rtlpriv->cfg->ops->linked_set_reg(hw);
|
rtlpriv->cfg->ops->linked_set_reg(hw);
|
||||||
|
send_beacon_frame(hw, vif);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((changed & BSS_CHANGED_BEACON_ENABLED &&
|
if ((changed & BSS_CHANGED_BEACON_ENABLED &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue