]> git.openfabrics.org - ~shefty/rdma-dev.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)
commit5306c0807491e891125f4fb08b04340c91530f57
tree0b5bd616007da0bf45f7486c48aae7a22bbd3297
parent77e569edf5a33cd94dac67c714cf736675b0e2da
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