]> git.baikalelectronics.ru Git - kernel.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)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 24 Jun 2011 18:21:24 +0000 (11:21 -0700)
commitcfe3dbcb007cf37a065c3528269720802879c14e
tree0b5bd616007da0bf45f7486c48aae7a22bbd3297
parent20268e1e85151a8aafa00355ff5a5e5923061175
iwlagn: fix change_interface for P2P types

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.

Cc: stable@kernel.org [2.6.38+]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-core.c