diff options
author | Jérôme Pouiller <jerome.pouiller@silabs.com> | 2023-10-04 20:28:38 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-10-09 09:53:06 +0300 |
commit | cf0cc05c8c231c075385cd906460543b03d76167 (patch) | |
tree | 90e7a62e30b8dd4318030463965c28dbbdd0fda9 /drivers/net/wireless/silabs/wfx/data_tx.h | |
parent | 94c104d518306626b254d927ccf46253fb4b084c (diff) | |
download | linux-cf0cc05c8c231c075385cd906460543b03d76167.tar.xz |
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
Diffstat (limited to 'drivers/net/wireless/silabs/wfx/data_tx.h')
-rw-r--r-- | drivers/net/wireless/silabs/wfx/data_tx.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/net/wireless/silabs/wfx/data_tx.h b/drivers/net/wireless/silabs/wfx/data_tx.h index 983470705e4b..a5b80eacce39 100644 --- a/drivers/net/wireless/silabs/wfx/data_tx.h +++ b/drivers/net/wireless/silabs/wfx/data_tx.h @@ -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 |