iwl3945: do not send scan command if channel count zero
authorReinette Chatre <reinette.chatre@intel.com>
Tue, 4 Nov 2008 20:21:35 +0000 (12:21 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Nov 2008 21:37:12 +0000 (16:37 -0500)
commit14b5433606289dbc5b6fd70ced11462f80e95003
treed7106b140206fe3b7d4b26ea9b800ab12655c473
parent2420ebc104d38567ee977a3c15dc675a9dd3b07c
iwl3945: do not send scan command if channel count zero

Do not send scan command if no channels to scan.

This avoids a Microcode error as reported in:
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1650
http://bugzilla.kernel.org/show_bug.cgi?id=11806
http://marc.info/?l=linux-wireless&m=122437145211886&w=2

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl3945-base.c