rt2x00: Implement get_antenna and set_antenna callback functions
Implement the get_antenna and set_antenna callback functions, which will allow clients to control the antenna for all non-11n hardware (Antenna handling in rt2800 is still a bit magical, so we can't use the set_antenna for those drivers yet). To best support the set_antenna callback some modifications are needed in the diversity handling. We should never look at the default antenna settings to determine if software diversity is enabled. Instead we should set the diversity flag when possible, which will allow the link_tuner to automatically pick up the tuning. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
e7dee44426
commit
0ed7b3c044
@ -2013,6 +2013,8 @@ static const struct ieee80211_ops rt2500pci_mac80211_ops = {
|
||||
.tx_last_beacon = rt2500pci_tx_last_beacon,
|
||||
.rfkill_poll = rt2x00mac_rfkill_poll,
|
||||
.flush = rt2x00mac_flush,
|
||||
.set_antenna = rt2x00mac_set_antenna,
|
||||
.get_antenna = rt2x00mac_get_antenna,
|
||||
.get_ringparam = rt2x00mac_get_ringparam,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user