Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267423
b: refs/heads/master
c: d5efae4
h: refs/heads/master
i:
  267421: 3660824
  267419: 9f7d0ef
  267415: a430828
  267407: 8fa42e6
  267391: 271ef88
v: v3
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent e6a4921 commit 6b5fbb8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 31 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b4d189f65245bd8e0ced3475c762d61e0caa61b
refs/heads/master: d5efae41b43cb37ee215a83d2c90b7170092af17
46 changes: 16 additions & 30 deletions trunk/drivers/staging/brcm80211/brcmsmac/phy/phy_lcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -4342,39 +4342,25 @@ static void wlc_lcnphy_tbl_init(struct brcms_phy *pi)
}

if (LCNREV_IS(pi->pubpi.phy_rev, 2)) {
const struct phytbl_info *tb;
int l;

if (CHSPEC_IS2G(pi->radio_chanspec)) {
for (idx = 0;
idx < dot11lcnphytbl_rx_gain_info_2G_rev2_sz;
idx++)
if (pi->sh->boardflags & BFL_EXTLNA)
wlc_lcnphy_write_table(
pi,
&
dot11lcnphytbl_rx_gain_info_extlna_2G_rev2
[idx]);
else
wlc_lcnphy_write_table(
pi,
&
dot11lcnphytbl_rx_gain_info_2G_rev2
[idx]);
l = dot11lcnphytbl_rx_gain_info_2G_rev2_sz;
if (pi->sh->boardflags & BFL_EXTLNA)
tb = dot11lcnphytbl_rx_gain_info_extlna_2G_rev2;
else
tb = dot11lcnphytbl_rx_gain_info_2G_rev2;
} else {
for (idx = 0;
idx < dot11lcnphytbl_rx_gain_info_5G_rev2_sz;
idx++)
if (pi->sh->boardflags & BFL_EXTLNA_5GHz)
wlc_lcnphy_write_table(
pi,
&
dot11lcnphytbl_rx_gain_info_extlna_5G_rev2
[idx]);
else
wlc_lcnphy_write_table(
pi,
&
dot11lcnphytbl_rx_gain_info_5G_rev2
[idx]);
l = dot11lcnphytbl_rx_gain_info_5G_rev2_sz;
if (pi->sh->boardflags & BFL_EXTLNA_5GHz)
tb = dot11lcnphytbl_rx_gain_info_extlna_5G_rev2;
else
tb = dot11lcnphytbl_rx_gain_info_5G_rev2;
}

for (idx = 0; idx < l; idx++)
wlc_lcnphy_write_table(pi, &tb[idx]);
}

if ((pi->sh->boardflags & BFL_FEM)
Expand Down

0 comments on commit 6b5fbb8

Please sign in to comment.