mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-08 22:39:58 +07:00
iwlwifi: make iwl_mac_beacon_update static
This function is only needed in the same file it is defined in, i.e. iwl-core.c Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
This commit is contained in:
parent
704da534af
commit
0bc5774f4e
drivers/net/wireless/iwlwifi
@ -1748,6 +1748,37 @@ static inline void iwl_set_no_assoc(struct iwl_priv *priv)
|
|||||||
iwlcore_commit_rxon(priv);
|
iwlcore_commit_rxon(priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb)
|
||||||
|
{
|
||||||
|
struct iwl_priv *priv = hw->priv;
|
||||||
|
unsigned long flags;
|
||||||
|
__le64 timestamp;
|
||||||
|
|
||||||
|
IWL_DEBUG_MAC80211(priv, "enter\n");
|
||||||
|
|
||||||
|
if (!iwl_is_ready_rf(priv)) {
|
||||||
|
IWL_DEBUG_MAC80211(priv, "leave - RF not ready\n");
|
||||||
|
return -EIO;
|
||||||
|
}
|
||||||
|
|
||||||
|
spin_lock_irqsave(&priv->lock, flags);
|
||||||
|
|
||||||
|
if (priv->ibss_beacon)
|
||||||
|
dev_kfree_skb(priv->ibss_beacon);
|
||||||
|
|
||||||
|
priv->ibss_beacon = skb;
|
||||||
|
|
||||||
|
timestamp = ((struct ieee80211_mgmt *)skb->data)->u.beacon.timestamp;
|
||||||
|
priv->timestamp = le64_to_cpu(timestamp);
|
||||||
|
|
||||||
|
IWL_DEBUG_MAC80211(priv, "leave\n");
|
||||||
|
spin_unlock_irqrestore(&priv->lock, flags);
|
||||||
|
|
||||||
|
priv->cfg->ops->lib->post_associate(priv, priv->vif);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void iwl_bss_info_changed(struct ieee80211_hw *hw,
|
void iwl_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,
|
||||||
@ -1914,38 +1945,6 @@ void iwl_bss_info_changed(struct ieee80211_hw *hw,
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(iwl_bss_info_changed);
|
EXPORT_SYMBOL(iwl_bss_info_changed);
|
||||||
|
|
||||||
int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb)
|
|
||||||
{
|
|
||||||
struct iwl_priv *priv = hw->priv;
|
|
||||||
unsigned long flags;
|
|
||||||
__le64 timestamp;
|
|
||||||
|
|
||||||
IWL_DEBUG_MAC80211(priv, "enter\n");
|
|
||||||
|
|
||||||
if (!iwl_is_ready_rf(priv)) {
|
|
||||||
IWL_DEBUG_MAC80211(priv, "leave - RF not ready\n");
|
|
||||||
return -EIO;
|
|
||||||
}
|
|
||||||
|
|
||||||
spin_lock_irqsave(&priv->lock, flags);
|
|
||||||
|
|
||||||
if (priv->ibss_beacon)
|
|
||||||
dev_kfree_skb(priv->ibss_beacon);
|
|
||||||
|
|
||||||
priv->ibss_beacon = skb;
|
|
||||||
|
|
||||||
timestamp = ((struct ieee80211_mgmt *)skb->data)->u.beacon.timestamp;
|
|
||||||
priv->timestamp = le64_to_cpu(timestamp);
|
|
||||||
|
|
||||||
IWL_DEBUG_MAC80211(priv, "leave\n");
|
|
||||||
spin_unlock_irqrestore(&priv->lock, flags);
|
|
||||||
|
|
||||||
priv->cfg->ops->lib->post_associate(priv, priv->vif);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(iwl_mac_beacon_update);
|
|
||||||
|
|
||||||
static int iwl_set_mode(struct iwl_priv *priv, struct ieee80211_vif *vif)
|
static int iwl_set_mode(struct iwl_priv *priv, struct ieee80211_vif *vif)
|
||||||
{
|
{
|
||||||
iwl_connection_init_rx_config(priv, vif);
|
iwl_connection_init_rx_config(priv, vif);
|
||||||
|
@ -380,7 +380,6 @@ void iwl_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,
|
||||||
u32 changes);
|
u32 changes);
|
||||||
int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb);
|
|
||||||
int iwl_commit_rxon(struct iwl_priv *priv);
|
int iwl_commit_rxon(struct iwl_priv *priv);
|
||||||
int iwl_mac_add_interface(struct ieee80211_hw *hw,
|
int iwl_mac_add_interface(struct ieee80211_hw *hw,
|
||||||
struct ieee80211_vif *vif);
|
struct ieee80211_vif *vif);
|
||||||
|
Loading…
Reference in New Issue
Block a user