aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00.h
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-01-06 17:40:49 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:25 -0500
commit3c4f2085e5d82639004406795653e1e4dd6720e0 (patch)
tree439cde40c92b581cf56c81ce8806126a4eee4867 /drivers/net/wireless/rt2x00/rt2x00.h
parente37ea2135be080dd25f1a2644c9132c109fa77d1 (diff)
rt2x00: Move packet filter flags
The packet filter flags don't belong in the interface structure because they are device based instead of interface based. So move the filter fields out of struct interface and into rt2x00_dev. Additionally we shouldn't change the filter based on the working mode, if such a thing is needed than mac80211 should have done that. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index 5e4cb3ee2eae..be1fc0aebadc 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -388,11 +388,6 @@ struct interface {
388 * BBSID of the AP to associate with. 388 * BBSID of the AP to associate with.
389 */ 389 */
390 u8 bssid[ETH_ALEN]; 390 u8 bssid[ETH_ALEN];
391
392 /*
393 * Store the packet filter mode for the current interface.
394 */
395 unsigned int filter;
396}; 391};
397 392
398static inline int is_interface_present(struct interface *intf) 393static inline int is_interface_present(struct interface *intf)
@@ -676,6 +671,13 @@ struct rt2x00_dev {
676 struct mutex usb_cache_mutex; 671 struct mutex usb_cache_mutex;
677 672
678 /* 673 /*
674 * Current packet filter configuration for the device.
675 * This contains all currently active FIF_* flags send
676 * to us by mac80211 during configure_filter().
677 */
678 unsigned int packet_filter;
679
680 /*
679 * Interface configuration. 681 * Interface configuration.
680 */ 682 */
681 struct interface interface; 683 struct interface interface;