===================================================================
@@ -1010,8 +1010,7 @@ static int rtl_op_conf_tx(struct ieee802
return 0;
}
-static void send_beacon_frame(struct ieee80211_hw *hw,
- struct ieee80211_vif *vif)
+void rtl_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);
@@ -1019,6 +1018,7 @@ static void send_beacon_frame(struct iee
if (skb)
rtlpriv->intf_ops->adapter_tx(hw, NULL, skb, NULL);
}
+EXPORT_SYMBOL(rtl_send_beacon_frame);
static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
@@ -1050,7 +1050,7 @@ static void rtl_op_bss_info_changed(stru
if (rtlpriv->cfg->ops->linked_set_reg)
rtlpriv->cfg->ops->linked_set_reg(hw);
- send_beacon_frame(hw, vif);
+ rtl_send_beacon_frame(hw, vif);
}
}
if ((changed & BSS_CHANGED_BEACON_ENABLED &&
===================================================================
@@ -85,5 +85,6 @@ void rtl_bb_delay(struct ieee80211_hw *h
bool rtl_cmd_send_packet(struct ieee80211_hw *hw, struct sk_buff *skb);
bool rtl_btc_status_false(void);
void rtl_dm_diginit(struct ieee80211_hw *hw, u32 cur_igval);
+void rtl_send_beacon_frame(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
#endif
===================================================================
@@ -30,6 +30,7 @@
#include "../wifi.h"
#include "../efuse.h"
#include "../base.h"
+#include "../core.h"
#include "../cam.h"
#include "../ps.h"
#include "../usb.h"
@@ -1529,6 +1530,7 @@ void rtl92cu_set_beacon_interval(struct
RT_TRACE(rtlpriv, COMP_BEACON, DBG_DMESG, "beacon_interval:%d\n",
bcn_interval);
rtl_write_word(rtlpriv, REG_BCN_INTERVAL, bcn_interval);
+ rtl_send_beacon_frame(hw, mac->vif);
}
void rtl92cu_update_interrupt_mask(struct ieee80211_hw *hw,