iwlagn: add support for waiting for notifications
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Jan 2011 00:22:00 +0000 (16:22 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Jan 2011 20:32:20 +0000 (15:32 -0500)
commit7194207ceea7a54c846e0865d2459f4887fe1e0d
treeeff27d7461dc336187a3765fd79e0daba7d8fc49
parentf945f1087f1fe20f9c626daa175b677736fc614d
iwlagn: add support for waiting for notifications

In order to implement waiting for notifications,
add a structure that captures the information,
and a list of such structures that will be
traversed when a command is received from the
ucode.

Use sparse checking to make sure calls to the
prepare/wait/cancel functions are always nested
correctly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-agn.h
drivers/net/wireless/iwlwifi/iwl-dev.h