projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
315a685
)
b43: HT-PHY: find channel entry with regs data
author
Rafał Miłecki
<zajec5@gmail.com>
Sun, 17 Jul 2011 08:30:33 +0000
(10:30 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 19 Jul 2011 20:49:51 +0000
(16:49 -0400)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/radio_2059.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/b43/radio_2059.c
b/drivers/net/wireless/b43/radio_2059.c
index 23dea4ba821904bbc289a29ebf1e57d4f1f7bbfb..f029f6e1f5d1c879abdbeea625a841aa87582ff3 100644
(file)
--- 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;
}