John W. Linville
27eee235de
Merge branch 'master' of git://git.infradead.org/users/rafal/b43-next
2013-04-23 14:10:10 -04:00
John W. Linville
ec094144cd
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
...
Conflicts:
drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
2013-04-23 14:09:39 -04:00
Rafał Miłecki
0c201cfbfd
b43: N-PHY: don't use deprecated b43_radio_foo16
...
All radio ops are 16b (there is only 1 exception for reg 0x1), so we
deprecated b43_radio_read16 and b43_radio_write16 long time ago.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:58 +02:00
Rafał Miłecki
3cc8ff9f2f
b43: N-PHY: move tables init function to tables file
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:58 +02:00
Rafał Miłecki
9a98979ead
b43: N-PHY: use defines for (re)storing VCM config
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:57 +02:00
Rafał Miłecki
78ae753280
b43: N-PHY: use shortcut "ctl" in functions names
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:57 +02:00
Rafał Miłecki
89e43dad11
b43: N-PHY: use enum for INTC override function argument
...
Also make a function name shorter so we can easily fit 80 chars.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:57 +02:00
Rafał Miłecki
04519dc659
b43: N-PHY: define missing registers
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:57 +02:00
Rafał Miłecki
fb3bc67ed8
b43: use defines for board_type
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:57 +02:00
Rafał Miłecki
542e15f35d
b43: N-PHY: fix "NB" RSSI calibration on PHYs rev2-
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:57 +02:00
Rafał Miłecki
a3764ef7a5
b43: N-PHY: use enum for RSSI type everywhere we use it
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:57 +02:00
Rafał Miłecki
2a2d058944
b43: N-PHY: rename RSSI types to be shorter and more accurate
...
Thanks to Broadcom releasing some code we can use better names.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:56 +02:00
Rafał Miłecki
37859a75cc
b43: N-PHY: use more friendly variables names in RSSI code
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:56 +02:00
Rafał Miłecki
e5ab1fd7a5
b43: N-PHY: simplify conditions in RSSI offset scale function
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:56 +02:00
Rafał Miłecki
6aa38725a5
b43: N-PHY: use enum for RAIL type
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
2013-04-23 12:27:56 +02:00
Hauke Mehrtens
9b38367245
b43: use bcma_pmu_spuravoid_pllupdate()
...
Do not implement this in b43, but use bcma_pmu_spuravoid_pllupdate().
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-04-12 15:29:14 -04:00
John W. Linville
655d8e2328
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
...
Conflicts:
drivers/net/wireless/ath/carl9170/debug.c
drivers/net/wireless/ath/carl9170/main.c
net/mac80211/ieee80211_i.h
2013-04-10 14:09:54 -04:00
Rafał Miłecki
46fc4c9093
ssb: implement spurious tone avoidance
...
And make use of it in b43. This fixes a regression introduced with
49d55cef5b
b43: N-PHY: implement spurious tone avoidance
This commit made BCM4322 use only MCS 0 on channel 13, which of course
resulted in performance drop (down to 0.7Mb/s).
Reported-by: Stefan Brüns <stefan.bruens@rwth-aachen.de >
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Cc: Stable <stable@vger.kernel.org >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-04-10 10:31:26 -04:00
Hauke Mehrtens
2d9d238511
b43: mark some functions and structs static
...
This fixes some sparse warnings.
b43_nphy_set_rxantenna() was not used anywhere.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-04-01 16:06:50 -04:00
Rafał Miłecki
2e1253d640
b43: N-PHY: use more bits for offset in RSSI calibration
...
When calculating "offset" for final RSSI calibration we're using numbers
bigger than s8 can hold. We have for example:
offset[j] = 232 - poll_results[j];
formula. If poll_results[j] is small enough (it usually is) we treat
number's bit as a sign bit. For example 232 - 1 becomes:
0xE8 - 0x1 = 0xE7, which is not 231 but -25.
This code was introduced in e0c9a0219a
and caused stability regression on some cards, for ex. BCM4322.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Cc: stable@vger.kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-03-27 11:07:05 -04:00
Rafał Miłecki
e67dd874e6
b43: N-PHY: increase initial value of "mind" in RSSI calibration
...
We're using "mind" variable to find the VCM that got the best polling
results. For each VCM we calculte "currd" which is compared to the
"mind". For PHY rev3+ "currd" gets values around 14k-40k. Looking for a
value smaller than 40 makes no sense, so increase the initial value.
This fixes a regression introduced in 3.4 by commit:
e0c9a0219a
(my BCM4322 performance dropped from 18,4Mb/s to 9,26Mb/s)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Cc: stable@vger.kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-03-27 11:07:04 -04:00
Karl Beldan
675a0b049a
mac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chan
...
Drivers that don't use chanctxes cannot perform VHT association because
they still use a "backward compatibility" pair of {ieee80211_channel,
nl80211_channel_type} in ieee80211_conf and ieee80211_local.
Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com >
[fix kernel-doc]
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
2013-03-25 19:19:35 +01:00
Rafał Miłecki
6c1872369d
b43: N-PHY: fix 0x2057 radio calib copy/paste mistake
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Reported-by: Fengguang Wu <fengguang.wu@intel.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-08-10 15:27:01 -04:00
Rafał Miłecki
c071b9f666
b43: N-PHY: add overriding RF control for rev7+
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-08-06 15:01:56 -04:00
Rafał Miłecki
572d37a485
b43: N-PHY: init 0x2057 radio
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-08-06 14:56:35 -04:00
Rafał Miłecki
d3d178f050
b43: N-PHY: finish 0x2056 radio setup
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-08-06 14:56:35 -04:00
Rafał Miłecki
0f941777c6
b43: add helper waiting for given value in radio reg
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-08-06 14:56:35 -04:00
Rafał Miłecki
d11d354b7b
b43: N-PHY: add PHY rev7+ workarounds
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-08-06 14:56:32 -04:00
Rafał Miłecki
fa0f2b3860
b43: N-PHY: update workarounds
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-08-06 14:56:31 -04:00
Rafał Miłecki
cddec90254
b43: N-PHY: fix RSSI calibration
...
Specs were updated, change code to match it.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-07-09 16:36:36 -04:00
Rafał Miłecki
3084f3b65c
b43: N-PHY: trivial: change save&rest order in RSSI polling
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-24 14:06:06 -05:00
Rafał Miłecki
e0c9a0219a
b43: N-PHY: implement RSSI calibration for rev3+
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-24 14:06:06 -05:00
Rafał Miłecki
34c5cf205e
b43: N-PHY: upload PAPD PGA gain delta table
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-24 14:06:05 -05:00
Rafał Miłecki
603431e9e2
b43: N-PHY: fix typos in RF control
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-24 14:06:05 -05:00
Rafał Miłecki
aeab57517c
b43: N-PHY: add helper for getting gain table
...
Also move the code to tables file.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-24 14:06:05 -05:00
Rafał Miłecki
d3fd8bf77a
b43: N-PHY: implement TX power control setup
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-24 14:06:05 -05:00
Rafał Miłecki
5056635c10
b43: add maskset helpers
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-24 14:06:05 -05:00
John W. Linville
1032c736e8
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
...
Conflicts:
drivers/net/wireless/b43legacy/dma.c
2012-01-05 10:13:24 -05:00
Rafał Miłecki
9bd2857188
b43: N-PHY: fix typo in TX power fix
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-04 14:30:42 -05:00
Rafał Miłecki
b97c071840
b43: N-PHY: fix controling RF override
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-04 14:30:42 -05:00
Rafał Miłecki
ed5103edc2
b43: N-PHY: update gain ctl workarounds
...
Specs were updated, now we match wl according to MMIO dumps.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-04 14:30:42 -05:00
Rafał Miłecki
3dda07b6f9
b43: N-PHY: get idle TSSI values
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-04 14:30:41 -05:00
Rafał Miłecki
2c8ac7eb96
b43: N-PHY: fix success condition of running samples
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-04 14:30:41 -05:00
Rafał Miłecki
9dd4d9b992
b43: N-PHY: move common TX/RX functions
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2012-01-04 14:30:41 -05:00
John W. Linville
57adc1fcba
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
...
Conflicts:
drivers/net/wireless/b43/dma.c
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
2012-01-03 15:16:34 -05:00
Rusty Russell
3db1cd5c05
net: fix assignment of 0/1 to bool variables.
...
DaveM said:
Please, this kind of stuff rots forever and not using bool properly
drives me crazy.
Joe Perches <joe@perches.com > gave me the spatch script:
@@
bool b;
@@
-b = 0
+b = false
@@
bool b;
@@
-b = 1
+b = true
I merely installed coccinelle, read the documentation and took credit.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
Signed-off-by: David S. Miller <davem@davemloft.net >
2011-12-19 22:27:29 -05:00
Rafał Miłecki
104cfa8810
b43: N-PHY: reorder functions: random cleanups
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Acked-by: Larry Finger <Larry.Finger@lwfinger.net >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2011-12-19 14:40:49 -05:00
Rafał Miłecki
3ccd095792
b43: N-PHY: reorder functions: move rest of workarounds
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Acked-by: Larry Finger <Larry.Finger@lwfinger.net >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2011-12-19 14:40:49 -05:00
Rafał Miłecki
5ecab603c7
b43: N-PHY: reorder functions: move RSSI calibration
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Acked-by: Larry Finger <Larry.Finger@lwfinger.net >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2011-12-19 14:40:49 -05:00
Rafał Miłecki
647120956e
b43: N-PHY: split gain control workarounds
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com >
Acked-by: Larry Finger <Larry.Finger@lwfinger.net >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2011-12-19 14:40:49 -05:00