Search Linux Wireless

[PATCH 08/19] rt2x00: Add per-interface structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rework the interface handling. Delete the interface structure
and replace it with a per-interface structure. This changes the
way rt2x00 handles the active interface drastically.

Copy ieee80211_bss_conf to the this rt2x00_intf structure during
the bss_info_changed() callback function. This will allow us to
reference it later, and removes the requirement for the device flag
SHORT_PREAMBLE flag which is interface specific.

Drivers receive the option to give the maximum number of virtual
interfaces the device can handle. Virtual interface support:
rt2400pci: 1 sta or 1 ap, * monitor interfaces
rt2500pci: 1 sta or 1 ap, * monitor interfaces
rt2500usb: 1 sta or 1 ap, * monitor interfaces
rt61pci: 1 sta or 4 ap, * monitor interfaces
rt73usb: 1 sta or 4 ap, * monitor interfaces

At the moment none of the drivers support AP and STA interfaces
simultaneously, this is a hardware limitation so future support
will be very unlikely.

Each interface structure receives its dedicated beacon entry,
with this we can easily work with beaconing while multiple master
mode interfaces are currently active.

The configuration handlers for the MAC, BSSID and type are
often called together since they all belong to the interface
configuration. Merge the 3 configuration calls and cleanup
the API between rt2x00lib and the drivers. While we are cleaning
up the interface configuration anyway, we might as well clean up
the configuration handler as well.

Signed-off-by: Ivo van Doorn <IvDoorn@xxxxxxxxx>
---

Patch size 77k, located on server
http://kernel.org//pub/linux/kernel/people/ivd/rt2x00-2.1.0/0008-rt2x00-Add-per-interface-structure.patch

 drivers/net/wireless/rt2x00/rt2400pci.c    |   84 ++++++------
 drivers/net/wireless/rt2x00/rt2500pci.c    |   98 +++++++------
 drivers/net/wireless/rt2x00/rt2500usb.c    |  207 ++++++++++++++++------------
 drivers/net/wireless/rt2x00/rt2500usb.h    |    1 +
 drivers/net/wireless/rt2x00/rt2x00.h       |  113 +++++++++++----
 drivers/net/wireless/rt2x00/rt2x00config.c |  119 ++++++++++-------
 drivers/net/wireless/rt2x00/rt2x00dev.c    |  154 +++++++++++++++------
 drivers/net/wireless/rt2x00/rt2x00lib.h    |   10 +-
 drivers/net/wireless/rt2x00/rt2x00mac.c    |  152 ++++++++++++++-------
 drivers/net/wireless/rt2x00/rt2x00pci.c    |   32 +++--
 drivers/net/wireless/rt2x00/rt2x00queue.h  |    3 -
 drivers/net/wireless/rt2x00/rt61pci.c      |  169 +++++++++++++----------
 drivers/net/wireless/rt2x00/rt61pci.h      |   18 ++-
 drivers/net/wireless/rt2x00/rt73usb.c      |  179 +++++++++++++-----------
 drivers/net/wireless/rt2x00/rt73usb.h      |   17 ++-
 15 files changed, 826 insertions(+), 530 deletions(-)
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux