[Bug 455] Fix frequent channel change generates firmware fatal error.
authorHong Liu <hong.liu@intel.com>
Thu, 25 Aug 2005 09:36:13 +0000 (17:36 +0800)
committerJames Ketrenos <jketreno@linux.intel.com>
Mon, 7 Nov 2005 23:51:11 +0000 (17:51 -0600)
commit7b99659f97ca20e5f1ea56253a9449d278d825d5
tree318b810e66466299874004b202fa7ee9a4538878
parenta0e04ab36048eb1c3da2524b5b0b802b6ab064f0
[Bug 455] Fix frequent channel change generates firmware fatal error.

Because of the frequent channel change, it is possible that when we are
try to associate with channel 1 (authenticated but not associated).
Another channel change comes at this time, then the driver will issue
disassociate command to the firmware which will cause the fatal error.

It seems that the association/disassociation procedure should not be
interrupted.

The patch attached adds test on STATUS_ASSOCIATING | STATUS_DISASSOCIATING
in ipw_send_cmd(), when ensures that commands will not be sent to firmware
when we are in these two status.

Signed-off-by: Hong Liu <hong.liu@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
drivers/net/wireless/ipw2200.c