]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
rt2x00: Don't alter rt2x00dev->default_ant
authorLars Ericsson <Lars_Ericsson@telia.com>
Sat, 18 Jul 2009 18:21:52 +0000 (20:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jul 2009 19:24:08 +0000 (15:24 -0400)
commiteb87eaac52e916e28bcf3bd5974f3b581f6c0ae9
tree3da38b5c765f3fda6833f9611da0648ca854685e
parenta272a720660059c30fa038113b77fa2a096437d9
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 <Lars_Ericsson@telia.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00config.c
drivers/net/wireless/rt2x00/rt2x00lib.h
drivers/net/wireless/rt2x00/rt2x00link.c
drivers/net/wireless/rt2x00/rt2x00mac.c