rt2x00: Split rt2x00dev.c
PATCH 2/4 rt2x00: Split rt2x00dev.c
This splits the rt2x00dev file into rt2x00dev.c and rt2x00mac.c The latter of those 2 files is intended for the mac80211 callback functions. This makes the contents of both files clearer and makes moving new functions into rt2x00dev.c easier.
Signed-off-by Ivo van Doorn <[email protected]>
---
drivers/net/wireless/mac80211/rt2x00/Makefile +1 -1
@@ -1,4 +1,4 @@ -rt2x00lib-objs := rt2x00dev.o +rt2x00lib-objs := rt2x00dev.o rt2x00mac.o obj-$(CONFIG_RT2X00_LIB) += rt2x00lib.o obj-$(CONFIG_RT2400PCI) += rt2400pci.o
drivers/net/wireless/mac80211/rt2x00/rt2x00dev.c +2 -511
531 lines not on this page · raw message
drivers/net/wireless/mac80211/rt2x00/rt2x00lib.h +9 -0
@@ -30,10 +30,16 @@#include <linux/firmware.h> +/* +* Firmware handlers. +*/ int rt2x00lib_load_firmware (struct rt2x00_dev *rt2x00dev,struct device *dev,void (*cont)(const struct firmware *fw,void *context));int rt2x00lib_load_firmware_wait (struct rt2x00_dev *rt2x00dev); +/* +* Interrupt context handlers. +*/ void rt2x00lib_update_tx_stats (struct data_entry *entry,const int status,const int is_ack,const int retry); void rt2x00lib_update_rx_stats(struct rt2x00_dev *rt2x00dev,
@@ -41,6 +47,9 @@ void rt2x00lib_update_rx_stats(struct rt2x00_dev *rt2x00dev,int rt2x00lib_detect_channel_time (struct rt2x00_dev *rt2x00dev); +/* +* mac80211 handlers. +*/ int rt2x00lib_tx (struct ieee80211_hw *hw,struct sk_buff *skb,struct ieee80211_tx_control *control);int rt2x00lib_reset (struct ieee80211_hw *hw);
drivers/net/wireless/mac80211/rt2x00/rt2x00mac.c new file +540 -0
540 lines not on this page · raw message