projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed5103e
)
b43: N-PHY: fix controling RF override
author
Rafał Miłecki
<zajec5@gmail.com>
Wed, 21 Dec 2011 23:47:18 +0000
(
00:47
+0100)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 4 Jan 2012 19:30:42 +0000
(14:30 -0500)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_n.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/b43/phy_n.c
b/drivers/net/wireless/b43/phy_n.c
index 38cf37d41ff5e7c3125a5db68103f343828218d7..b8525cca410e867559f45a911fe474bd58d1ccc0 100644
(file)
--- a/
drivers/net/wireless/b43/phy_n.c
+++ b/
drivers/net/wireless/b43/phy_n.c
@@
-167,7
+167,7
@@
static void b43_nphy_rf_control_override(struct b43_wldev *dev, u16 field,
b43_phy_mask(dev, val_addr,
~(rf_ctrl->val_mask));
} else {
- if (core == 0 || ((1 <<
core) & i) != 0
) {
+ if (core == 0 || ((1 <<
i) & core)
) {
b43_phy_set(dev, en_addr, field);
b43_phy_maskset(dev, val_addr,
~(rf_ctrl->val_mask),
@@
-200,7
+200,7
@@
static void b43_nphy_rf_control_override(struct b43_wldev *dev, u16 field,
addr = B43_PHY_N((i == 0) ?
rf_ctrl->addr0 : rf_ctrl->addr1);
- if ((
core & (1 << i)) != 0
)
+ if ((
1 << i) & core
)
b43_phy_maskset(dev, addr, ~(rf_ctrl->bmask),
(value << rf_ctrl->shift));