diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-07-17 08:30:33 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-19 20:49:51 (GMT) |
commit | 49ac26fa5b05cace123af9b069e00e47ab6a6fe7 (patch) | |
tree | 144f81576e89dee0c793022da0a2710e87e78bab /drivers/net/wireless/b43 | |
parent | 315a685f26ac220711d82bbf88cca6f55f1d9ca3 (diff) | |
download | linux-fsl-qoriq-49ac26fa5b05cace123af9b069e00e47ab6a6fe7.tar.xz |
b43: HT-PHY: find channel entry with regs data
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/radio_2059.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/radio_2059.c b/drivers/net/wireless/b43/radio_2059.c index 23dea4b..f029f6e 100644 --- a/drivers/net/wireless/b43/radio_2059.c +++ b/drivers/net/wireless/b43/radio_2059.c @@ -161,5 +161,14 @@ static const struct b43_phy_ht_channeltab_e_radio2059 b43_phy_ht_channeltab_radi const struct b43_phy_ht_channeltab_e_radio2059 *b43_phy_ht_get_channeltab_e_r2059(struct b43_wldev *dev, u16 freq) { + const struct b43_phy_ht_channeltab_e_radio2059 *e; + unsigned int i; + + e = b43_phy_ht_channeltab_radio2059; + for (i = 0; i < ARRAY_SIZE(b43_phy_ht_channeltab_radio2059); i++, e++) { + if (e->freq == freq) + return e; + } + return NULL; } |