iwlwifi: Fix mode changes (ad-hoc <--> managed)
authorAssaf Krauss <assaf.krauss@intel.com>
Thu, 12 Jun 2008 01:47:06 +0000 (09:47 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 14 Jun 2008 16:18:07 +0000 (12:18 -0400)
commit398f9e765f57c0dca0f6fb13c28ad929c09c68ef
treeb35d110f16f1327d29625e62b13c735b7624022c
parentc46fbefa32c3c314884d3d3be27d0e1839de2c24
iwlwifi: Fix mode changes (ad-hoc <--> managed)

This fix allows to move between modes (ad-hoc to managed, and vice versa).
Since mode changes can only be done while driver is down, check for ibss
support can only be made when the channel is set (afte the driver goes up).

Signed-off-by: Assaf Krauss <assaf.krauss@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl4965-base.c