aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Merge branch 'master' of git://git.infradead.org/users/rafal/b43-nextJohn W. Linville2013-04-23
|\
| * b43: N-PHY: don't use deprecated b43_radio_foo16Rafał Miłecki2013-04-23
| | | | | | | | | | | | | | 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: clean init tablesRafał Miłecki2013-04-23
| | | | | | | | | | | | | | Sort defines, use one macro for all revs, support for 5GHz when uploading antenna table. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: move tables init function to tables fileRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use defines for (re)storing VCM configRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use shortcut "ctl" in functions namesRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use enum for INTC override function argumentRafał Miłecki2013-04-23
| | | | | | | | | | | | 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-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: use defines for board_typeRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: fix "NB" RSSI calibration on PHYs rev2-Rafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use enum for RSSI type everywhere we use itRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: rename RSSI types to be shorter and more accurateRafał Miłecki2013-04-23
| | | | | | | | | | | | 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-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: simplify conditions in RSSI offset scale functionRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: N-PHY: use enum for RAIL typeRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: HT-PHY: use enum for RSSI typesRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: HT-PHY: store TX power state before disabling itRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: HT-PHY: define regs for power estimationRafał Miłecki2013-04-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In MMIO dumps of ndiswrapper there are following PHY ops: phy_read(0x0118) -> 0x013d phy_read(0x01ed) -> 0x993d phy_read(0x0119) -> 0x012f phy_read(0x01ee) -> 0x992f phy_read(0x011a) -> 0x0139 phy_read(0x0969) -> 0x9939 It matches the code of wlc_phy_txpower_est_power_nphy (from brcm80211), so we know the registers meaning. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: HT-PHY: do some extra TSSI setup after configuring TXRafał Miłecki2013-04-23
| | | | | | | | | | | | | | | | | | | | After b43_phy_ht_tx_power_ctl_setup there are some extra radio ops: radio_read(0x08bf) -> 0x0001 radio_write(0x08bf) <- 0x0001 radio_write(0x0159) <- 0x0011 On N-PHY we write 0x11 to TSSI regs, so it's probably sth similar. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: HT-PHY: finish calculating values for idle TSSIRafał Miłecki2013-04-23
| | | | | | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: HT-PHY: tables: don't duplicate core-generic regsRafał Miłecki2013-04-23
| | | | | | | | | | | | | | Now when we know many radio regs at 0x000 are core-generic, I've noticed we duplicate some values in the tables. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
| * b43: HT-PHY: rename defines addressing cores on the 2059 radioRafał Miłecki2013-04-23
| | | | | | | | | | | | | | | | | | After comparing writes to registers at 0x000, 0x400 and 0x800 it seems there are many very similar writes. So 0x000 offset is not for accessing something totally different, but probably just the first out of three cores. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* | Merge branch 'master' of ↵John W. Linville2013-04-23
|\ \ | |/ |/| | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless Conflicts: drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
| * ath9k_hw: change AR9580 initvals to fix a stability issueFelix Fietkau2013-04-12
| | | | | | | | | | | | | | | | | | | | | | The hardware parsing of Control Wrapper Frames needs to be disabled, as it has been causing spurious decryption error reports. The initvals for other chips have been updated to disable it, but AR9580 was left out for some reason. Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * Merge branch 'for-john' of ↵John W. Linville2013-04-12
| |\ | | | | | | | | | git://x-git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
| | * mac80211: fix cfg80211 interaction on auth/assoc requestJohannes Berg2013-04-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If authentication (or association with FT) is requested by userspace, mac80211 currently doesn't tell cfg80211 that it disconnected from the AP. That leaves inconsistent state: cfg80211 thinks it's connected while mac80211 thinks it's not. Typically this won't last long, as soon as mac80211 reports the new association to cfg80211 the old one goes away. If, however, the new authentication or association doesn't succeed, then cfg80211 will forever think the old one still exists and will refuse attempts to authenticate or associate with the AP it thinks it's connected to. Anders reported that this leads to it taking a very long time to reconnect to a network, or never even succeeding. I tested this with an AP hacked to never respond to auth frames, and one that works, and with just those two the system never recovers because one won't work and cfg80211 thinks it's connected to the other so refuses connections to it. To fix this, simply make mac80211 tell cfg80211 when it is no longer connected to the old AP, while authenticating or associating to a new one. Cc: stable@vger.kernel.org Reported-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
| * | ssb: implement spurious tone avoidanceRafał Miłecki2013-04-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | brcmsmac: request firmware in .start() callbackArend van Spriel2013-04-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The firmware is requested from user-space. To assure the request is handled it is recommended to do the request upon IFF_UP. For a mac80211 driver the .start() callback can be considered the equivalent. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Piotr Haber <phaber@broadcom.com> Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * | brcmfmac: remove advertising P2P device supportArend van Spriel2013-04-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For v3.9 kernel the P2P functionality was merged, but it does not fully support the P2P_DEVICE interface type. This patch removes advertising that support. Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * | ath9k_htc: accept 1.x firmware newer than 1.3Felix Fietkau2013-04-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the firmware has been open sourced, the minor version has been bumped to 1.4 and the API/ABI will stay compatible across further 1.x releases. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Cc: stable@vger.kernel.org Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * | ath9k: fix DFS detector called in softirq contextZefir Kurtisi2013-04-08
| | | | | | | | | | | | | | | Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
| * | Merge branch 'for-john' of ↵John W. Linville2013-04-08
| |\| | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
| | * mac80211: fix LED in idle handlingJohannes Berg2013-04-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feng xiangjun reports that my commit 382a103b2b528a3085cde4ac56fc69d92a828b72 Author: Johannes Berg <johannes.berg@intel.com> Date: Fri Mar 22 22:30:09 2013 +0100 mac80211: fix idle handling sequence broke the wireless status LED. The reason is that we now call ieee80211_idle_off() when the channel context is assigned, and that doesn't recalculate the LED state. Fix this by making that function a wrapper around most of idle recalculation while forcing active. Reported-by: feng xiangjun <fengxj325@gmail.com> Tested-by: feng xiangjun <fengxj325@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* | | mwifiex: remove redundant initialization for bss_descriptorBing Zhao2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialization of bss_descriptor is unnecessary as the entire structure will be overwritten by a memcpy followed by. Initialize disable_11ac flag properly by setting it to true in mwifiex_fill_new_bss_desc(). Reported-by: Doug Anderson <dianders@chromium.org> Reviewed-by: Doug Anderson <dianders@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | mwifiex: fix use-after-free in beacon_ie processingBing Zhao2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | beacon_ie buffer is allocated in mwifiex_fill_new_bss_desc() and the buffer pointer is saved in bss_desc->beacon_buf. beacon_ie is freed before the function returns. However, bss_desc->beacon_buf is still being accessed afterwards. Fix it by freeing beacon_ie (bss_desc->beacon_buf) in caller's scope. Reviewed-by: Doug Anderson <dianders@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | mwifiex: don't try to associate when bss_mode is not STABing Zhao2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have blocked association attempts on interfaces configured in AP and AD-HOC modes. P2P mode should be blocked too. Furthermore, an error code must be returned if we are unable to associate. Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | mwifiex: make use of msecs_to_jiffies()Bing Zhao2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | Use msecs_to_jiffies() wherever possible. Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | mwifiex: correct bss_mode check while appending vht operation IEBing Zhao2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | priv->bss_mode uses NL80211_IFTYPE_* definitions. HostCmd_BSS_MODE_IBSS is used in ad-hoc start/join command between driver and firmware. Coincidentally both HostCmd_BSS_MODE_IBSS and NL80211_IFTYPE_STATION are defined as 2. That explains why nobody complained. Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | mwifiex: use PCI_DMA_FROMDEVICE for RX queue de-initAvinash Patil2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a typo in mwifiex_cleanup_rxq_ring() which uses PCI_DMA_TODEVICE while unmapping PCI memory. We should actually use PCI_DMA_FROMDEVICE. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | mwifiex: configure p2p interface during initializationBing Zhao2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Send P2P_MODE_CFG cmd to firmware when p2p interface is created. Without proper p2p configuration firmware may behave incorrectly while handling commands sent through this interface. Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: Stone Piao <piaoyun@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | mwifiex: Start P2P devices in P2P modePaul Stewart2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | p2p devices should identify themselves as such to userspace at startup, so the connection manager can decide which interface to start wpa_supplicant instances on. Signed-off-by: Paul Stewart <pstew@chromium.org> Reviewed-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | rt2x00: Use more current logging styles, shrink object sizeJoe Perches2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce object space ~2% using more current logging styles. Neaten and simplify logging macros. Use wiphy_<level> where appropriate. Coalesce formats. Convert ERROR/WARNING/INFO macros to rt2x00_<level> Convert EEPROM to rt2x00_eeprom_dbg Convert PROBE_ERROR to rt2x00_probe_err Convert DEBUG to rt2x00_dbg Convert EEPROM to rt2x00_eeprom_dbg $ size drivers/net/wireless/rt2x00/built-in.o* text data bss dec hex filename 245639 71696 69584 386919 5e767 drivers/net/wireless/rt2x00/built-in.o.new 240609 70096 68944 379649 5cb01 drivers/net/wireless/rt2x00/built-in.o.new.nodyndbg 240609 70096 68944 379649 5cb01 drivers/net/wireless/rt2x00/built-in.o.new.no_rt2x00_debug 249198 70096 70352 389646 5f20e drivers/net/wireless/rt2x00/built-in.o.old 249198 70096 70352 389646 5f20e drivers/net/wireless/rt2x00/built-in.o.old.nodyndbg 244222 70096 69712 384030 5dc1e drivers/net/wireless/rt2x00/built-in.o.old.no_rt2x00_debug Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | rt2x00: rt2800lib: rename rt2800_init_bbb_early to rt2800_init_bbp_earlyGabor Juhos2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function is used for BBP register initialization, fix the typo in the function name to reflect that. The patch contains no functional changes. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | brcmfmac: fix potential NULL pointer dereference in ↵Wei Yongjun2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | brcmf_fws_flow_control_check() The dereference to 'ifp' in debug code should be moved below the NULL test. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | wil6210: more Rx descriptor accessor functionsVladimir Kondratiev2013-04-22
| | | | | | | | | | | | | | | | | | | | | Helpers to fetch various fields from the Rx descriptor Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | wil6210: Use cached copy of Tx descriptorVladimir Kondratiev2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | Original Tx descriptor stored is in non-cached area for DMA; copy it to the cached memory to speed-up access Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | wil6210: Tx init optimizationVladimir Kondratiev2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | vring size is known from the beginning, fill it immediately in the struct initializer This is minor optimization that reduces code size. Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | wil6210: Use cached copy of Rx descriptorVladimir Kondratiev2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rx descriptors stored in non-cacheable memory area for DMA. Non-cacheable memory causes long access time from CPU. Copy rx descriptor to the skb->cb, and use this copy. It provides faster memory access, and will be usefull to keep Rx information for later processing (BACK reorder) Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | brcmfmac: stop dequeue upon sk_buff commit failureArend van Spriel2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the dequeue worker the function brcmf_commit_skb() is called. However, instead of increment the credit count upon success it should break the for loop upon failure. Otherwise, it will result in an endless loop. Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | | brcmfmac: change return type for brcmf_rollback_toq() to voidArend van Spriel2013-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function brcmf_rollback_toq() is already called in error path and its result should not override the initial error value. As the function releases the sk_buff there is no need to return anything so change return type to void. Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>