iwlwifi: support host command with copied data
authorJohannes Berg <johannes.berg@intel.com>
Fri, 19 Oct 2012 12:24:43 +0000 (14:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 29 Oct 2012 10:27:05 +0000 (11:27 +0100)
commitf4feb8ac6e666d2ca37cf722166bbfadf2c6adf8
tree950d1e7ab7ef3098f41b095f4e59d65520c6aeea
parent86052a77067df53ad48800e74984f84806baddbd
iwlwifi: support host command with copied data

In addition to the NOCOPY flag, add a DUP flag that
tells the transport to kmemdup() the buffer and free
it after the command completes.

Currently this is only supported for a single buffer
in a given command, but that could be extended if it
should be needed.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/iwl-trans.h
drivers/net/wireless/iwlwifi/pcie/internal.h
drivers/net/wireless/iwlwifi/pcie/rx.c
drivers/net/wireless/iwlwifi/pcie/trans.c
drivers/net/wireless/iwlwifi/pcie/tx.c