rt2x00: Remove ieee80211_bss_conf from rt2x00_intf
authorIvo van Doorn <ivdoorn@gmail.com>
Wed, 29 Oct 2008 16:18:22 +0000 (17:18 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Nov 2008 20:17:33 +0000 (15:17 -0500)
We can safely remove ieee80211_bss_conf from rt2x00_intf,
it is provided by mac80211 in ieee80211_vif as well.
(rt2x00_intf is the drv_priv field of ieee80211_vif).

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt2x00mac.c

index 4d983e6eefc4003c9be88be234a0b838393a939e..ca1f9fe8be1538ead7f6286587152bf4cd07c553 100644 (file)
@@ -347,13 +347,6 @@ struct rt2x00_intf {
         */
        spinlock_t lock;
 
-       /*
-        * BSS configuration. Copied from the structure
-        * passed to us through the bss_info_changed()
-        * callback funtion.
-        */
-       struct ieee80211_bss_conf conf;
-
        /*
         * MAC of the device.
         */
index e1feab8b6b0296582c9b360295f8e56121d19803..c42e4fdf0a1b48fef884659b570bec236e347cda 100644 (file)
@@ -417,7 +417,7 @@ static void rt2x00lib_intf_scheduled_iter(void *data, u8 *mac,
         */
        spin_lock(&intf->lock);
 
-       memcpy(&conf, &intf->conf, sizeof(conf));
+       memcpy(&conf, &vif->bss_conf, sizeof(conf));
        delayed_flags = intf->delayed_flags;
        intf->delayed_flags = 0;
 
index 3a3b5ad3802382fe200d529ca7743e731b532033..8fc2315c59637d427cd8397c83dbeb4e5d71937c 100644 (file)
@@ -634,7 +634,6 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw,
        }
 
        spin_lock(&intf->lock);
-       memcpy(&intf->conf, bss_conf, sizeof(*bss_conf));
        if (delayed) {
                intf->delayed_flags |= delayed;
                schedule_work(&rt2x00dev->intf_work);