From: Lars Ericsson Date: Sat, 18 Jul 2009 18:21:52 +0000 (+0200) Subject: rt2x00: Don't alter rt2x00dev->default_ant X-Git-Tag: v2.6.32-rc1~703^2~506^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb87eaac52e916e28bcf3bd5974f3b581f6c0ae9;p=pandora-kernel.git rt2x00: Don't alter rt2x00dev->default_ant rt2x00dev->default_ant should be initialized once by the driver, and should not be changed afterwards. Because rt2x00lib_config_antenna() was using a reference to the struct antenna_setup it actually had the oppurtunity to change the default antenna setting and it actually did that during the validation. Instead of passing a pointer to antenna_setup the entire structure should be copied. Signed-off-by: Lars Ericsson Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed