aboutsummaryrefslogtreecommitdiffstats
path: root/package/b43/src/phy.h
diff options
context:
space:
mode:
authorPeter Denison <openwrt@marshadder.org>2008-06-04 19:47:48 +0000
committerPeter Denison <openwrt@marshadder.org>2008-06-04 19:47:48 +0000
commitb2a1f5e79bd22acba7d88089904cfa78adc5b46f (patch)
treeaebbf69ea17a65b63b840390ead0e106ec2f5fc6 /package/b43/src/phy.h
parente8620fa5aa1e1cc71f909f938c01207f22aa1b68 (diff)
downloadupstream-b2a1f5e79bd22acba7d88089904cfa78adc5b46f.tar.gz
upstream-b2a1f5e79bd22acba7d88089904cfa78adc5b46f.tar.bz2
upstream-b2a1f5e79bd22acba7d88089904cfa78adc5b46f.zip
Update b43 from compat-wireless-2008-05-26 codebase
SVN-Revision: 11358
Diffstat (limited to 'package/b43/src/phy.h')
-rw-r--r--package/b43/src/phy.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/package/b43/src/phy.h b/package/b43/src/phy.h
index 6d165d8221..4aab109035 100644
--- a/package/b43/src/phy.h
+++ b/package/b43/src/phy.h
@@ -225,7 +225,6 @@ int b43_phy_init(struct b43_wldev *dev);
void b43_set_rx_antenna(struct b43_wldev *dev, int antenna);
void b43_phy_xmitpower(struct b43_wldev *dev);
-void b43_gphy_dc_lt_init(struct b43_wldev *dev);
/* Returns the boolean whether the board has HardwarePowerControl */
bool b43_has_hardware_pctl(struct b43_phy *phy);
@@ -252,6 +251,14 @@ struct b43_rfatt_list {
u8 max_val;
};
+/* Returns true, if the values are the same. */
+static inline bool b43_compare_rfatt(const struct b43_rfatt *a,
+ const struct b43_rfatt *b)
+{
+ return ((a->att == b->att) &&
+ (a->with_padmix == b->with_padmix));
+}
+
/* Baseband Attenuation */
struct b43_bbatt {
u8 att; /* Attenuation value */
@@ -265,6 +272,13 @@ struct b43_bbatt_list {
u8 max_val;
};
+/* Returns true, if the values are the same. */
+static inline bool b43_compare_bbatt(const struct b43_bbatt *a,
+ const struct b43_bbatt *b)
+{
+ return (a->att == b->att);
+}
+
/* tx_control bits. */
#define B43_TXCTL_PA3DB 0x40 /* PA Gain 3dB */
#define B43_TXCTL_PA2DB 0x20 /* PA Gain 2dB */