b43: LCN-PHY: tweaks for channel switching
[deliverable/linux.git] / drivers / net / wireless / b43 / radio_2059.c
index 23dea4ba821904bbc289a29ebf1e57d4f1f7bbfb..d4ce8a12ff9a05a9bb988b0a47fb888c0b9c123d 100644 (file)
@@ -3,6 +3,8 @@
   Broadcom B43 wireless driver
   IEEE 802.11n 2059 radio device data tables
 
+  Copyright (c) 2011 Rafał Miłecki <zajec5@gmail.com>
+
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
@@ -161,5 +163,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;
 }
This page took 0.030859 seconds and 5 git commands to generate.