Skip to content

Commit 33511b1

Browse files
TaeheeYooKalle Valo
authored andcommitted
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 <[email protected]> Acked-by: Larry Finger <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent ea2325b commit 33511b1

File tree

1 file changed

+11
-0
lines changed
  • drivers/net/wireless/rtlwifi

1 file changed

+11
-0
lines changed

drivers/net/wireless/rtlwifi/core.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,16 @@ static int rtl_op_conf_tx(struct ieee80211_hw *hw,
10101010
return 0;
10111011
}
10121012

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+
10131023
static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
10141024
struct ieee80211_vif *vif,
10151025
struct ieee80211_bss_conf *bss_conf,
@@ -1040,6 +1050,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
10401050

10411051
if (rtlpriv->cfg->ops->linked_set_reg)
10421052
rtlpriv->cfg->ops->linked_set_reg(hw);
1053+
send_beacon_frame(hw, vif);
10431054
}
10441055
}
10451056
if ((changed & BSS_CHANGED_BEACON_ENABLED &&

0 commit comments

Comments
 (0)