]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlagn: fix change_interface for P2P types
authorJohannes Berg <johannes.berg@intel.com>
Tue, 21 Jun 2011 15:28:31 +0000 (08:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:33 +0000 (23:15 -0700)
commit283f795cc145256c9eb0c0eaf7392be97d189444
tree37de89b7f22a5cff8b5f9d00d7c5ad975ef7c76e
parent1f224f1fcc301d291e0ef607b294c5dc3a2b3a5b
iwlagn: fix change_interface for P2P types

commit 5306c0807491e891125f4fb08b04340c91530f57 upstream.

When an interface changes type to a P2P type,
iwlagn will erroneously set vif->type to the
P2P type and not the reduced/split type. Fix
this by keeping "newtype" in another variable
for the assignment to vif->type.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/iwlwifi/iwl-core.c