Commit e8dec1e9 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville

b43: HT-PHY: replace radio routing magic numbers

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b4d38db1
...@@ -57,7 +57,7 @@ static void b43_radio_2059_channel_setup(struct b43_wldev *dev, ...@@ -57,7 +57,7 @@ static void b43_radio_2059_channel_setup(struct b43_wldev *dev,
b43_radio_write(dev, 0x98, e->radio_syn98); b43_radio_write(dev, 0x98, e->radio_syn98);
for (i = 0; i < 2; i++) { for (i = 0; i < 2; i++) {
routing = i ? 0x800 : 0x400; routing = i ? R2059_RXRX1 : R2059_TXRX0;
b43_radio_write(dev, routing | 0x4a, e->radio_rxtx4a); b43_radio_write(dev, routing | 0x4a, e->radio_rxtx4a);
b43_radio_write(dev, routing | 0x58, e->radio_rxtx58); b43_radio_write(dev, routing | 0x58, e->radio_rxtx58);
b43_radio_write(dev, routing | 0x5a, e->radio_rxtx5a); b43_radio_write(dev, routing | 0x5a, e->radio_rxtx5a);
......
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
#include "phy_ht.h" #include "phy_ht.h"
#define R2059_SYN 0x000
#define R2059_TXRX0 0x400
#define R2059_RXRX1 0x800
#define R2059_ALL 0xC00
/* Values for various registers uploaded on channel switching */ /* Values for various registers uploaded on channel switching */
struct b43_phy_ht_channeltab_e_radio2059 { struct b43_phy_ht_channeltab_e_radio2059 {
/* The channel frequency in MHz */ /* The channel frequency in MHz */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment