From: Johannes Berg Date: Tue, 21 Jun 2011 15:28:31 +0000 (-0700) Subject: iwlagn: fix change_interface for P2P types X-Git-Tag: v3.0-rc7~41^2~22^2^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5306c0807491e891125f4fb08b04340c91530f57;p=pandora-kernel.git 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 Signed-off-by: Wey-Yi Guy --- Reading git-diff-tree failed