iwlwifi: refactor testmode
authorIlan Peer <ilan.peer@intel.com>
Sun, 3 Jun 2012 10:36:51 +0000 (13:36 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Jun 2012 09:37:21 +0000 (11:37 +0200)
commit3a6490c0840c0ae67cc3a51e1b724bd7e460041e
treea4ca0fb263015d883fdc6f681442df5a9c4d60d8
parentb1abedada3fd0aa100723aa9b60b7e31c17945cb
iwlwifi: refactor testmode

Create an object that will enacpsulate the testmode functionality
that is common to all op modes.

 * Copy definitions from dvm/dev.h
 * Copy the testmode logic from dvm/testmode.c
 * Link iwl-test object into the iwlwifi module
 * Modify DVM to use iwl-test object

Reviewed-by: Amit Beka <amit.beka@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/Makefile
drivers/net/wireless/iwlwifi/dvm/agn.h
drivers/net/wireless/iwlwifi/dvm/dev.h
drivers/net/wireless/iwlwifi/dvm/main.c
drivers/net/wireless/iwlwifi/dvm/rx.c
drivers/net/wireless/iwlwifi/dvm/testmode.c
drivers/net/wireless/iwlwifi/iwl-test.c [new file with mode: 0644]
drivers/net/wireless/iwlwifi/iwl-test.h [new file with mode: 0644]
drivers/net/wireless/iwlwifi/iwl-testmode.h [moved from drivers/net/wireless/iwlwifi/dvm/testmode.h with 100% similarity]