aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-02-01Bluetooth: Simplify UUID removal codeJohan Hedberg1-4/+2
The UUID removal code can be simplified by using list_for_each_entry_safe instead of list_for_each_safe. Signed-off-by: Johan Hedberg <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Signed-off-by: Gustavo Padovan <[email protected]>
2013-02-01Bluetooth: Keep track of UUID type upon additionJohan Hedberg2-25/+24
The primary purpose of the UUIDs is to enable generation of EIR and AD data. In these data formats the UUIDs are split into separate fields based on whether they're 16, 32 or 128 bit UUIDs. To make the generation of these data fields simpler this patch adds a type member to the bt_uuid struct and assigns a value to it as soon as the UUID is added to the kernel. This way the type doesn't need to be calculated each time the UUID list is later iterated. Signed-off-by: Johan Hedberg <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Signed-off-by: Gustavo Padovan <[email protected]>
2013-02-01Bluetooth: Simplify UUIDs clearing codeJohan Hedberg1-7/+3
The code for clearing the UUIDs list can be simplified by using list_for_each_entry_safe instead of list_for_each_safe. Signed-off-by: Johan Hedberg <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Signed-off-by: Gustavo Padovan <[email protected]>
2013-02-01Bluetooth: Store UUIDs in the same order that they were addedJohan Hedberg1-1/+1
We should be encoding UUIDs to the EIR data in the same order that they were added to the kernel, i.e. each UUID should be added to the end of the UUIDs list. This patch fixes the issue by using list_add_tail instead of list_add for storing the UUIDs. Signed-off-by: Johan Hedberg <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Signed-off-by: Gustavo Padovan <[email protected]>
2013-01-30wil6210: fix wil_vring_init_tx statusVladimir Kondratiev1-0/+1
In case vring setup with the firmware failed, success status was returned. fix it. Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: Never delete Rx chain with firmwareVladimir Kondratiev3-26/+1
Firmware crash on attempt to delete Rx chain. Driver part of Rx chain removed only in preparation for the target reset; as reset is the only flow that removes Rx chain in the firmware. Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: checkpatch warningsVladimir Kondratiev6-9/+5
Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: fix checkpatch CamelCase warningsVladimir Kondratiev7-82/+82
Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: Reorder reset preparation sequenceVladimir Kondratiev1-4/+4
Disable interrupts first to prevent spurious WMI events arrival Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: Separate common code for mbox regs caching to functionVladimir Kondratiev1-10/+11
Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: Fix "don't scan after connect" logicVladimir Kondratiev2-1/+2
When connect times out, scan was not re-enabled. Strictly say, it is firmware issue - it should issue "disconnect" event but it does not. Compensate in the driver. Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: Call skb_orphan() right before Rx indicationVladimir Kondratiev1-2/+2
Other parts of Rx path (BACK logic) will need to access associated data Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: Fix: Tx stallVladimir Kondratiev2-28/+1
Due to multi-tx-queue design, wil_start_xmit() used to be executed concurrently for different queues. Then, these transmits delivered to the same queue, creating race. As result, Tx descriptor may be skipped, causing stall in hardware. Convert to single Tx queue fixes it. Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: Count Tx statistics on Tx completionVladimir Kondratiev1-2/+9
This allows to account for Tx errors Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: Refactor rx init/finiVladimir Kondratiev3-52/+77
Move WMI related operations to wmi.c as helper functions Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: remove raw wil_dbg() callsVladimir Kondratiev5-24/+25
Introduce debug category "MISC", convert all raw wil_dbg() to this category. This improves dynamic debug manageability Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: rearrange IRQ debug printingVladimir Kondratiev1-2/+2
Make printings from IRQ appears in dmesg in chronological order Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30wil6210: Detect FW errorVladimir Kondratiev2-5/+25
In the firmware, added is ability to report internal errors using IRQ. Catch this IRQ and notify user space via netlink User space get notified like (udevadm monitor --kernel --property): KERNEL[12660.320520] change /devices/pci0000:00/0000:00:1c.1/0000:02:00.0/0000:03:01.0/0000:05:00.0/net/wlan12 (net) ACTION=change DEVPATH=/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/0000:03:01.0/0000:05:00.0/net/wlan12 DEVTYPE=wlan EVENT=FW_ERROR IFINDEX=6 INTERFACE=wlan12 SEQNUM=2489 SOURCE=wil6210 SUBSYSTEM=net Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwifiex: avoid out of bounds access in mwifiex_get_common_rates.Cyril Roelandt1-2/+2
Check that the array indexes are in-bounds before accessing the rate2 and tmp arrays. Found with the following semantic patch: <smpl> @@ identifier t; identifier idx; expression E; statement S; @@ * for (... ; <+... t[idx] ...+> && idx < E ; ...) S </smpl> Signed-off-by: Cyril Roelandt <[email protected]> Acked-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30rtlwifi: Eliminate two empty routinesLarry Finger1-15/+0
Signed-off-by: Larry Finger <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30net: iwlegacy: remove unused variableGuenter Roeck1-3/+0
Fix: drivers/net/wireless/iwlegacy/4965.c: In function ‘il4965_post_associate’: drivers/net/wireless/iwlegacy/4965.c:1751:25: warning: variable ‘conf’ set but not used [-Wunused-but-set-variable] seen when building allmodconfig on x86_64 with W=1 by removing the unused variable. Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30iwlegacy: fix antenna bitmaskChristian Lamparter1-1/+1
This patch is based on "iwlwifi: fix antenna bitmask". (362b0563b28506d53) Like the new iwlagn devices, the old 4965N device only supports a maximum of three antennas. Hence only three bits are used, the fourth bit is likely the A-MPDU indicator. Cc: Stanislaw Gruszka <[email protected]> Signed-off-by: Christian Lamparter <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30bcma: add gpio_to_irqHauke Mehrtens2-2/+18
The old bcm47xx gpio code had support for gpio_to_irq, but the new code did not provide this function, but returned -ENXIO all the time. This patch adds the missing function. Signed-off-by: Hauke Mehrtens <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30ssb: add gpio_to_irqHauke Mehrtens2-0/+27
The old bcm47xx gpio code had support for gpio_to_irq, but the new code did not provide this function, but returned -ENXIO all the time. This patch adds the missing function. arch/mips/bcm47xx/wgt634u.c calls gpio_to_irq() and got the correct irq number with the old gpio handling code. With this patch the code in wgt634u.c should work again. I do not have a wgt634u to test this. Signed-off-by: Hauke Mehrtens <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwifiex: do not overwrite error code from lower layer driverBing Zhao2-8/+6
Instead of converting it to a bogus error code -1, we should return the original error code from lower layer driver. This error code will be printed so it may give user some clues on what has happened. Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwifiex: don't return zero on failure paths in mwifiex_pcie_init()Alexey Khoroshilov1-0/+2
If pci_iomap() fails in mwifiex_pcie_init(), it breaks off initialization, deallocates all resources, but returns zero. The patch adds -EIO as return value in this case. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <[email protected]> Acked-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30rtl8723ae: Fix misspellings sucess->successAnatol Pomozov1-3/+3
Signed-off-by: Anatol Pomozov <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: Do not call STA specific cmds not supported by the AP fwYogesh Ashok Powar1-3/+23
While using STA mode in the AP firmware, avoid calling some firmware commands which are not supported by the AP firmware. Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: Choose interface specific calls on vif typeYogesh Ashok Powar1-4/+2
Choose interface specific function calls based on interface type instead of firmware types. Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: Add/Del self entry for AP interface onlyYogesh Ashok Powar1-2/+2
Add and delete self entry in the firmware sta database for AP interface only. We do not need such an entry for STA interface. Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: Enable hw encryption for STA mode on AP fwYogesh Ashok Powar1-1/+2
Firmware supports hardware encryption feature for the station interface running on AP firmware. Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: set mac type to MWL8K_MAC_TYPE_SECONDARY_CLIENTYogesh Ashok Powar1-1/+4
Set mac type for station interface on AP firmware as secondary. This allows the firmware to set specific characteristics for the STA interface. Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: Allow adding station interface on AP firmwareYogesh Ashok Powar1-7/+13
When user wants to add a station interface when AP firmware is loaded & in-use, allow creating it and also notify user about the same. Allow adding max one STA interface for AP fw. Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: Announce simultaneous AP-STA support on AP fwYogesh Ashok Powar1-0/+2
Specify the STA support in iface_limit and in wihpy->interface_modes Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: Move tx/rx antenna configuration to mwl8k_probe_hwYogesh Ashok Powar1-6/+9
This avoids calling mwl8k_cmd_rf_antenna functions every time mwl8k_config function is called. Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: Do not call mwl8k_cmd_set_rf_channel unconditionallyYogesh Ashok Powar1-3/+5
Avoid calling mwl8k_cmd_set_rf_channel unconditionally by checking IEEE80211_CONF_CHANGE_CHANNEL. Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwl8k: Stop bsses before hw specific commandsYogesh Ashok Powar1-8/+70
For the commands, that might change the hw characteristics of the PHY device, stop the running bsses and resume them once command is complete. Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Nishant Sarmukadam <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30bcma: register platform device for parallel flashRafał Miłecki3-5/+42
Signed-off-by: John W. Linville <[email protected]>
2013-01-30ssb: register platform device for parallel flashRafał Miłecki3-1/+40
Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30ssb: trivial: use pflash helper variableRafał Miłecki1-9/+10
Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30rt2x00: allow AP and mesh mode to operate simultaneouslyChun-Yeow Yeoh1-1/+2
Allow AP and Mesh mode to operate concurrently using single radio. Verify this using fonera 2.0n featuring RT3052 chipset and also TP-LINK TL-WN727N featuring RT5370 chipset. Signed-off-by: Chun-Yeow Yeoh <[email protected]> Acked-by: Helmut Schaa <[email protected]> Acked-by: Gertjan van Wingerde <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30rt2x00: remove NOTICEStanislaw Gruszka3-5/+3
We use this macro only on 3 places - remove it and replace by other appropriate macros for printing messages. Signed-off-by: Stanislaw Gruszka <[email protected]> Acked-by: Ivo van Doorn <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30rt2800usb: move "TX status missed" messages to debug levelStanislaw Gruszka1-3/+3
Those messages can flood in dmesg, so do not print them by default. Signed-off-by: Stanislaw Gruszka <[email protected]> Acked-by: Gertjan van Wingerde <[email protected]> Acked-by: Ivo van Doorn <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30rt2x00: print warning, notice and info as defaultStanislaw Gruszka1-2/+2
Some messages provide useful information, but are disabled without CONFIG_RT2X00_DEBUG=y, so enable them by default Signed-off-by: Stanislaw Gruszka <[email protected]> Acked-by: Gertjan van Wingerde <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30ath9k: Update spectral scan output dataSven Eckelmann3-11/+15
The sample data received through the spectral scan can be either in big or little endian byteorder. This information isn't stored in the output file. Therefore it is not possible for the analyzer software to find the correct byte order. It is relative common to get the data from a low end AP in big endian mode and transfer it to another computer in little endian mode to analyze it. Therefore, it would be better to store it in network (big endian) byte order. The extension of the 8 bit bins for each bin to 16 bit is not necessary. This operation can be done in userspace or on a different machine. Instead the max_exp defining the amount of shifting required for each bin is exported to userspace. The change of the output format requires a change of the type in the sample tlv to allow the userspace program to correctly detect the bin format. Reported-by: Zefir Kurtisi <[email protected]> Signed-off-by: Sven Eckelmann <[email protected]> [[email protected]: squashed patches, update commit message, rebase, fix endianess bug] Signed-off-by: Simon Wunderlich <[email protected]> Signed-off-by: Mathias Kretschmer <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30ath9k: reorder error codes for spectralSimon Wunderlich1-4/+4
When using the spectral scan feature, frames with phy errors are returned for further processing to the driver. However, if the frames also have an invalid CRC (which seems to happen quite often), the frame is marked with bad CRC and not with the PHY error bit. The FFT processing function will thus miss the frames. Fix this by changing the precedence in error marking. Signed-off-by: Simon Wunderlich <[email protected]> Signed-off-by: Mathias Kretschmer <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30ath9k: drop spectral packets after processing themSimon Wunderlich3-15/+25
Spectral packets are "bogus" packets and should not be further evaluated by the RX path. Statistics are added to keep track of these packets. Signed-off-by: Simon Wunderlich <[email protected]> Signed-off-by: Mathias Kretschmer <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30ath9k: add debug parameters for spectral scanSimon Wunderlich4-17/+200
Export the various parameters to userspace. Signed-off-by: Simon Wunderlich <[email protected]> Signed-off-by: Mathias Kretschmer <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30mwifiex: fix invalid access of PCIe RxBD ring buffer descriptorAvinash Patil1-2/+2
This patch fixes invalid access of RxBD ring buffer descriptor's length and flag inside PCIe send_data_complete() routine. We are supposed to modify TxBD buffer descriptor's length and flag here. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2013-01-30rt2x00: print chip and firmware version by defaultStanislaw Gruszka2-4/+4
Signed-off-by: Stanislaw Gruszka <[email protected]> Tested-by: Xose Vazquez Perez <[email protected]> Signed-off-by: John W. Linville <[email protected]>