iwlwifi: dvm: move ADD_STA response handling to sync command
authorJohannes Berg <johannes.berg@intel.com>
Tue, 23 Jun 2015 18:56:45 +0000 (20:56 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 4 Aug 2015 07:11:40 +0000 (10:11 +0300)
commit4492bb6b10b1fbbc3fd4e8ea1b1bef51a1b2b31a
treeb4f2c13d34cecdc21a340f3959ba210a3fa8b17d
parent2dc2a15ebd12c44074d0ea2eef3e97956df4bb86
iwlwifi: dvm: move ADD_STA response handling to sync command

This driver currently has some very confusing ADD_STA response handling
that runs asynchronously in the background for all of the commands, but
is only really necessary for synchronous ones (the really asynchronous
ones can only be done for already existing stations), and for the sync
ones it actually waits for the RX handler to return a status code.

Rework this to keep the debug printing in the handler, but do the code
that's supposed to have an effect only for sync commands in the command
sending function.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/dvm/sta.c