Skip to content

Commit

Permalink
fix indentation and update driver version
Browse files Browse the repository at this point in the history
  • Loading branch information
neurobin committed Oct 11, 2016
1 parent d5023e7 commit 35f9a53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions rt2x00/rt2800lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -3047,15 +3047,15 @@ void rt2800_config_ant(struct rt2x00_dev *rt2x00dev, struct antenna_setup *ant)
rt2800_MT7630_bbp_write(rt2x00dev, TXBE_R5, txbe);


rt2800_MT7630_bbp_read(rt2x00dev, AGC1_R0, &agc_r0);
agc = agc_r0 & (~0x18);
if(ant->rx_chain_num == 2)
agc |= (0x8);
else if(ant->rx_chain_num == 1)
agc |= (0x0);

if (agc != agc_r0)
rt2800_MT7630_bbp_write(rt2x00dev, AGC1_R0, agc);
rt2800_MT7630_bbp_read(rt2x00dev, AGC1_R0, &agc_r0);
agc = agc_r0 & (~0x18);
if(ant->rx_chain_num == 2)
agc |= (0x8);
else if(ant->rx_chain_num == 1)
agc |= (0x0);

if (agc != agc_r0)
rt2800_MT7630_bbp_write(rt2x00dev, AGC1_R0, agc);
printk("MT7630 set Tx/Rx Ant ant->tx_chain_num=%d Ant ant->rx_chain_num=%d\n",ant->tx_chain_num,ant->rx_chain_num);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions rt2x00/rt2x00.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
/*
* Module information.
*/
#define DRV_VERSION "2.3.5"
#define DRV_VERSION "2.3.7"
#define DRV_PROJECT "http://rt2x00.serialmonkey.com"


Expand Down Expand Up @@ -211,7 +211,7 @@ typedef struct pci_dev * PPCI_DEV;
#define SUBTYPE_AUTH 11
#define SUBTYPE_DEAUTH 12
#define SUBTYPE_ACTION 13
#define SUBTYPE_ACTION_NO_ACK 14
#define SUBTYPE_ACTION_NO_ACK 14

// value domain of 802.11 CNTL frame's FC.subtype, which is b7..4 of the 1st-byte of MAC header
#define SUBTYPE_WRAPPER 7
Expand Down

0 comments on commit 35f9a53

Please sign in to comment.