iwlwifi: decouple testmode and iwl-test
authorIlan Peer <ilan.peer@intel.com>
Mon, 4 Jun 2012 16:39:30 +0000 (19:39 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Jun 2012 09:41:18 +0000 (11:41 +0200)
commitc76fe6d19b8beffe792c390c0bd215d193512f1e
tree97457f8ad76187a4422757194d0a34bb977b24f3
parent3a6490c0840c0ae67cc3a51e1b724bd7e460041e
iwlwifi: decouple testmode and iwl-test

The iwl-test flows were based on the cfg80211 testmode APIs.

To remove this coupling, the op mode (during the initialization
of the iwl_test object) is responsible to set the callbacks that
should be used by iwl-test to allocate skbs for events and replies
and to send events and replies.

The current op modes implement these callbacks based on the cfg80211
testmode APIs.

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/dvm/rx.c
drivers/net/wireless/iwlwifi/dvm/testmode.c
drivers/net/wireless/iwlwifi/iwl-test.c
drivers/net/wireless/iwlwifi/iwl-test.h