From: Zhu, Yi Date: Wed, 29 Oct 2008 21:05:45 +0000 (-0700) Subject: iwlwifi: fix priv->iw_mode setting when multiple vif are configured X-Git-Tag: v2.6.29-rc1~581^2~742^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60294de3af99586bb4a205274d02a7c8b910c0c3;p=pandora-kernel.git iwlwifi: fix priv->iw_mode setting when multiple vif are configured mac80211 supports multiple virtual interfaces for a single device. For example, a managed interface (wlan0) and a monitor interface (mon0) can exist at the same time. Thus priv->iw_mode is not sufficient to track the wireless mode any more. The patch redefines priv->iw_mode as the first interface mode (the same as priv->vif->type if priv->vif != NULL). If another monitor type interface is created later, we don't change priv->iw_mode into monitor. This way, the original interface still works. The patch also requests mac80211 to do reassociation after we change the Rx filter flags. Signed-off-by: Zhu Yi Signed-off-by: Reinette Chatre Signed-off-by: John W. Linville --- Reading git-diff-tree failed