summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/phy_n.c
Commit message (Collapse)AuthorAgeFilesLines
* drivers: net: wireless: b43: Fix possible NULL ptr dereferenceFelipe Pena2013-10-181-1/+2
| | | | | | | | On the ternary expression the 'e' variable could be NULL dereferenced, when b43_nphy_get_rf_ctl_over_rev7 function returns NULL. Signed-off-by: Felipe Pena <felipensp@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* Merge branch 'master' of git://git.infradead.org/users/rafal/b43-nextJohn W. Linville2013-04-231-300/+349
|\
| * b43: N-PHY: don't use deprecated b43_radio_foo16Rafał Miłecki2013-04-231-59/+59
| | | | | | | | | | | | | | 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>
| * b43: N-PHY: move tables init function to tables fileRafał Miłecki2013-04-231-12/+0
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use defines for (re)storing VCM configRafał Miłecki2013-04-231-5/+14
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use shortcut "ctl" in functions namesRafał Miłecki2013-04-231-22/+22
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use enum for INTC override function argumentRafał Miłecki2013-04-231-18/+28
| | | | | | | | | | | | Also make a function name shorter so we can easily fit 80 chars. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: define missing registersRafał Miłecki2013-04-231-38/+36
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: use defines for board_typeRafał Miłecki2013-04-231-3/+3
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: fix "NB" RSSI calibration on PHYs rev2-Rafał Miłecki2013-04-231-1/+1
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use enum for RSSI type everywhere we use itRafał Miłecki2013-04-231-43/+61
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: rename RSSI types to be shorter and more accurateRafał Miłecki2013-04-231-19/+19
| | | | | | | | | | | | Thanks to Broadcom releasing some code we can use better names. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use more friendly variables names in RSSI codeRafał Miłecki2013-04-231-28/+36
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: simplify conditions in RSSI offset scale functionRafał Miłecki2013-04-231-55/+65
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use enum for RAIL typeRafał Miłecki2013-04-231-9/+17
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* | Merge branch 'master' of ↵John W. Linville2013-04-231-1/+2
|\ \ | |/ |/| | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless Conflicts: drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
| * ssb: implement spurious tone avoidanceRafał Miłecki2013-04-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | And make use of it in b43. This fixes a regression introduced with 49d55cef5b1925a5c1efb6aaddaa40fc7c693335 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>
* | b43: use bcma_pmu_spuravoid_pllupdate()Hauke Mehrtens2013-04-121-54/+2
| | | | | | | | | | | | | | 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>
* | Merge branch 'for-john' of ↵John W. Linville2013-04-101-2/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | mac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chanKarl Beldan2013-03-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | b43: mark some functions and structs staticHauke Mehrtens2013-04-011-5/+1
| |/ |/| | | | | | | | | | | | | | | 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>
* | b43: N-PHY: use more bits for offset in RSSI calibrationRafał Miłecki2013-03-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 e0c9a0219a8f542e3946fe972a68aacf8c3f906c 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>
* | b43: N-PHY: increase initial value of "mind" in RSSI calibrationRafał Miłecki2013-03-271-2/+2
|/ | | | | | | | | | | | | | | 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: e0c9a0219a8f542e3946fe972a68aacf8c3f906c (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>
* b43: N-PHY: fix 0x2057 radio calib copy/paste mistakeRafał Miłecki2012-08-101-0/+1
| | | | | | 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>
* b43: N-PHY: add overriding RF control for rev7+Rafał Miłecki2012-08-061-4/+44
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: N-PHY: init 0x2057 radioRafał Miłecki2012-08-061-2/+140
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: N-PHY: finish 0x2056 radio setupRafał Miłecki2012-08-061-6/+89
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: add helper waiting for given value in radio regRafał Miłecki2012-08-061-11/+1
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: N-PHY: add PHY rev7+ workaroundsRafał Miłecki2012-08-061-2/+326
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: N-PHY: update workaroundsRafał Miłecki2012-08-061-16/+30
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: N-PHY: fix RSSI calibrationRafał Miłecki2012-07-091-8/+9
| | | | | | | 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>
* b43: N-PHY: trivial: change save&rest order in RSSI pollingRafał Miłecki2012-01-241-8/+8
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: N-PHY: implement RSSI calibration for rev3+Rafał Miłecki2012-01-241-6/+187
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: N-PHY: upload PAPD PGA gain delta tableRafał Miłecki2012-01-241-6/+5
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: N-PHY: fix typos in RF controlRafał Miłecki2012-01-241-3/+3
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: N-PHY: add helper for getting gain tableRafał Miłecki2012-01-241-75/+6
| | | | | | | 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>
* b43: N-PHY: implement TX power control setupRafał Miłecki2012-01-241-1/+216
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* b43: add maskset helpersRafał Miłecki2012-01-241-9/+5
| | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* Merge branch 'master' of ↵John W. Linville2012-01-051-114/+241
|\ | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem Conflicts: drivers/net/wireless/b43legacy/dma.c
| * b43: N-PHY: fix typo in TX power fixRafał Miłecki2012-01-041-1/+1
| | | | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * b43: N-PHY: fix controling RF overrideRafał Miłecki2012-01-041-2/+2
| | | | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * b43: N-PHY: update gain ctl workaroundsRafał Miłecki2012-01-041-2/+2
| | | | | | | | | | | | | | 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>
| * b43: N-PHY: get idle TSSI valuesRafał Miłecki2012-01-041-1/+124
| | | | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * b43: N-PHY: fix success condition of running samplesRafał Miłecki2012-01-041-1/+1
| | | | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * b43: N-PHY: move common TX/RX functionsRafał Miłecki2012-01-041-107/+111
| | | | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | Merge branch 'master' of ↵John W. Linville2012-01-031-1753/+1780
|\| | | | | | | | | | | | | | | 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
| * b43: N-PHY: reorder functions: random cleanupsRafał Miłecki2011-12-191-107/+116
| | | | | | | | | | | | 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>
| * b43: N-PHY: reorder functions: move rest of workaroundsRafał Miłecki2011-12-191-226/+226
| | | | | | | | | | | | 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>
| * b43: N-PHY: reorder functions: move RSSI calibrationRafał Miłecki2011-12-191-300/+300
| | | | | | | | | | | | 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>
| * b43: N-PHY: split gain control workaroundsRafał Miłecki2011-12-191-264/+267
| | | | | | | | | | | | 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>