wifi: wfx: move wfx_skb_*() out of the header file
There is no real reasons to keep these function in the header file. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20231004172843.195332-4-jerome.pouiller@silabs.com
This commit is contained in:
committed by
Kalle Valo
parent
94c104d518
commit
cf0cc05c8c
@@ -208,6 +208,24 @@ static bool wfx_is_action_back(struct ieee80211_hdr *hdr)
|
||||
return true;
|
||||
}
|
||||
|
||||
struct wfx_tx_priv *wfx_skb_tx_priv(struct sk_buff *skb)
|
||||
{
|
||||
struct ieee80211_tx_info *tx_info;
|
||||
|
||||
if (!skb)
|
||||
return NULL;
|
||||
tx_info = IEEE80211_SKB_CB(skb);
|
||||
return (struct wfx_tx_priv *)tx_info->rate_driver_data;
|
||||
}
|
||||
|
||||
struct wfx_hif_req_tx *wfx_skb_txreq(struct sk_buff *skb)
|
||||
{
|
||||
struct wfx_hif_msg *hif = (struct wfx_hif_msg *)skb->data;
|
||||
struct wfx_hif_req_tx *req = (struct wfx_hif_req_tx *)hif->body;
|
||||
|
||||
return req;
|
||||
}
|
||||
|
||||
static u8 wfx_tx_get_link_id(struct wfx_vif *wvif, struct ieee80211_sta *sta,
|
||||
struct ieee80211_hdr *hdr)
|
||||
{
|
||||
|
||||
@@ -45,22 +45,7 @@ void wfx_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control, struc
|
||||
void wfx_tx_confirm_cb(struct wfx_dev *wdev, const struct wfx_hif_cnf_tx *arg);
|
||||
void wfx_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif, u32 queues, bool drop);
|
||||
|
||||
static inline struct wfx_tx_priv *wfx_skb_tx_priv(struct sk_buff *skb)
|
||||
{
|
||||
struct ieee80211_tx_info *tx_info;
|
||||
|
||||
if (!skb)
|
||||
return NULL;
|
||||
tx_info = IEEE80211_SKB_CB(skb);
|
||||
return (struct wfx_tx_priv *)tx_info->rate_driver_data;
|
||||
}
|
||||
|
||||
static inline struct wfx_hif_req_tx *wfx_skb_txreq(struct sk_buff *skb)
|
||||
{
|
||||
struct wfx_hif_msg *hif = (struct wfx_hif_msg *)skb->data;
|
||||
struct wfx_hif_req_tx *req = (struct wfx_hif_req_tx *)hif->body;
|
||||
|
||||
return req;
|
||||
}
|
||||
struct wfx_tx_priv *wfx_skb_tx_priv(struct sk_buff *skb);
|
||||
struct wfx_hif_req_tx *wfx_skb_txreq(struct sk_buff *skb);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user