Skip to content

Commit

Permalink
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
Browse files Browse the repository at this point in the history
…t/linville/wireless-next into for-davem

Conflicts:
	include/net/bluetooth/bluetooth.h
  • Loading branch information
linvjw committed Nov 17, 2011
2 parents 8d26784 + b4487c2 commit e11c259
Show file tree
Hide file tree
Showing 205 changed files with 9,141 additions and 6,576 deletions.
3 changes: 3 additions & 0 deletions arch/alpha/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

/* O_NONBLOCK clashes with the bits used for socket types. Therefore we
* have to define SOCK_NONBLOCK to a different value here.
*/
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_SOCKET_H */
3 changes: 3 additions & 0 deletions arch/avr32/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* __ASM_AVR32_SOCKET_H */
3 changes: 3 additions & 0 deletions arch/cris/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_SOCKET_H */


3 changes: 3 additions & 0 deletions arch/frv/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,8 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_SOCKET_H */

3 changes: 3 additions & 0 deletions arch/h8300/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_SOCKET_H */
3 changes: 3 additions & 0 deletions arch/ia64/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_IA64_SOCKET_H */
3 changes: 3 additions & 0 deletions arch/m32r/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_M32R_SOCKET_H */
3 changes: 3 additions & 0 deletions arch/m68k/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_SOCKET_H */
3 changes: 3 additions & 0 deletions arch/mips/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ To add: #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#ifdef __KERNEL__

/** sock_type - Socket types
Expand Down
3 changes: 3 additions & 0 deletions arch/mn10300/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_SOCKET_H */
3 changes: 3 additions & 0 deletions arch/parisc/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@

#define SO_RXQ_OVFL 0x4021

#define SO_WIFI_STATUS 0x4022
#define SCM_WIFI_STATUS SO_WIFI_STATUS

/* O_NONBLOCK clashes with the bits used for socket types. Therefore we
* have to define SOCK_NONBLOCK to a different value here.
*/
Expand Down
3 changes: 3 additions & 0 deletions arch/powerpc/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_POWERPC_SOCKET_H */
3 changes: 3 additions & 0 deletions arch/s390/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _ASM_SOCKET_H */
3 changes: 3 additions & 0 deletions arch/sparc/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@

#define SO_RXQ_OVFL 0x0024

#define SO_WIFI_STATUS 0x0025
#define SCM_WIFI_STATUS SO_WIFI_STATUS

/* Security levels - as per NRL IPv6 - don't actually do anything */
#define SO_SECURITY_AUTHENTICATION 0x5001
#define SO_SECURITY_ENCRYPTION_TRANSPORT 0x5002
Expand Down
3 changes: 3 additions & 0 deletions arch/xtensa/include/asm/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,7 @@

#define SO_RXQ_OVFL 40

#define SO_WIFI_STATUS 41
#define SCM_WIFI_STATUS SO_WIFI_STATUS

#endif /* _XTENSA_SOCKET_H */
15 changes: 11 additions & 4 deletions drivers/bluetooth/ath3k.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <net/bluetooth/bluetooth.h>

#define VERSION "1.0"
#define ATH3K_FIRMWARE "ath3k-1.fw"

#define ATH3K_DNLOAD 0x01
#define ATH3K_GETSTATE 0x05
Expand Down Expand Up @@ -400,9 +401,15 @@ static int ath3k_probe(struct usb_interface *intf,
return 0;
}

if (request_firmware(&firmware, "ath3k-1.fw", &udev->dev) < 0) {
BT_ERR("Error loading firmware");
return -EIO;
ret = request_firmware(&firmware, ATH3K_FIRMWARE, &udev->dev);
if (ret < 0) {
if (ret == -ENOENT)
BT_ERR("Firmware file \"%s\" not found",
ATH3K_FIRMWARE);
else
BT_ERR("Firmware file \"%s\" request failed (err=%d)",
ATH3K_FIRMWARE, ret);
return ret;
}

ret = ath3k_load_firmware(udev, firmware);
Expand Down Expand Up @@ -441,4 +448,4 @@ MODULE_AUTHOR("Atheros Communications");
MODULE_DESCRIPTION("Atheros AR30xx firmware driver");
MODULE_VERSION(VERSION);
MODULE_LICENSE("GPL");
MODULE_FIRMWARE("ath3k-1.fw");
MODULE_FIRMWARE(ATH3K_FIRMWARE);
4 changes: 1 addition & 3 deletions drivers/bluetooth/bfusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,7 @@ static void bfusb_disconnect(struct usb_interface *intf)

bfusb_close(hdev);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);
}

Expand Down
4 changes: 1 addition & 3 deletions drivers/bluetooth/bluecard_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,9 +844,7 @@ static int bluecard_close(bluecard_info_t *info)
/* Turn FPGA off */
outb(0x80, iobase + 0x30);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);

return 0;
Expand Down
4 changes: 1 addition & 3 deletions drivers/bluetooth/bt3c_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,7 @@ static int bt3c_close(bt3c_info_t *info)

bt3c_hci_close(hdev);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);

return 0;
Expand Down
4 changes: 1 addition & 3 deletions drivers/bluetooth/btuart_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,7 @@ static int btuart_close(btuart_info_t *info)

spin_unlock_irqrestore(&(info->lock), flags);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);

return 0;
Expand Down
19 changes: 15 additions & 4 deletions drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ static struct usb_device_id btusb_table[] = {
/* Canyon CN-BTU1 with HID interfaces */
{ USB_DEVICE(0x0c10, 0x0000) },

/* Broadcom BCM20702A0 */
{ USB_DEVICE(0x413c, 0x8197) },

{ } /* Terminating entry */
};

Expand Down Expand Up @@ -312,7 +315,8 @@ static int btusb_submit_intr_urb(struct hci_dev *hdev, gfp_t mem_flags)

err = usb_submit_urb(urb, mem_flags);
if (err < 0) {
BT_ERR("%s urb %p submission failed (%d)",
if (err != -EPERM && err != -ENODEV)
BT_ERR("%s urb %p submission failed (%d)",
hdev->name, urb, -err);
usb_unanchor_urb(urb);
}
Expand Down Expand Up @@ -397,7 +401,8 @@ static int btusb_submit_bulk_urb(struct hci_dev *hdev, gfp_t mem_flags)

err = usb_submit_urb(urb, mem_flags);
if (err < 0) {
BT_ERR("%s urb %p submission failed (%d)",
if (err != -EPERM && err != -ENODEV)
BT_ERR("%s urb %p submission failed (%d)",
hdev->name, urb, -err);
usb_unanchor_urb(urb);
}
Expand Down Expand Up @@ -520,7 +525,8 @@ static int btusb_submit_isoc_urb(struct hci_dev *hdev, gfp_t mem_flags)

err = usb_submit_urb(urb, mem_flags);
if (err < 0) {
BT_ERR("%s urb %p submission failed (%d)",
if (err != -EPERM && err != -ENODEV)
BT_ERR("%s urb %p submission failed (%d)",
hdev->name, urb, -err);
usb_unanchor_urb(urb);
}
Expand Down Expand Up @@ -724,6 +730,9 @@ static int btusb_send_frame(struct sk_buff *skb)
usb_fill_bulk_urb(urb, data->udev, pipe,
skb->data, skb->len, btusb_tx_complete, skb);

if (skb->priority >= HCI_PRIO_MAX - 1)
urb->transfer_flags = URB_ISO_ASAP;

hdev->stat.acl_tx++;
break;

Expand Down Expand Up @@ -767,7 +776,9 @@ static int btusb_send_frame(struct sk_buff *skb)

err = usb_submit_urb(urb, GFP_ATOMIC);
if (err < 0) {
BT_ERR("%s urb %p submission failed", hdev->name, urb);
if (err != -EPERM && err != -ENODEV)
BT_ERR("%s urb %p submission failed (%d)",
hdev->name, urb, -err);
kfree(urb->setup_packet);
usb_unanchor_urb(urb);
} else {
Expand Down
4 changes: 1 addition & 3 deletions drivers/bluetooth/dtl1_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,7 @@ static int dtl1_close(dtl1_info_t *info)

spin_unlock_irqrestore(&(info->lock), flags);

if (hci_unregister_dev(hdev) < 0)
BT_ERR("Can't unregister HCI device %s", hdev->name);

hci_unregister_dev(hdev);
hci_free_dev(hdev);

return 0;
Expand Down
5 changes: 1 addition & 4 deletions drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,7 @@ static int vhci_release(struct inode *inode, struct file *file)
struct vhci_data *data = file->private_data;
struct hci_dev *hdev = data->hdev;

if (hci_unregister_dev(hdev) < 0) {
BT_ERR("Can't unregister HCI device %s", hdev->name);
}

hci_unregister_dev(hdev);
hci_free_dev(hdev);

file->private_data = NULL;
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ obj-$(CONFIG_WL12XX_PLATFORM_DATA) += wl12xx/
obj-$(CONFIG_IWM) += iwmc3200wifi/

obj-$(CONFIG_MWIFIEX) += mwifiex/
obj-$(CONFIG_BRCMFMAC) += brcm80211/
obj-$(CONFIG_BRCMUMAC) += brcm80211/
obj-$(CONFIG_BRCMSMAC) += brcm80211/

obj-$(CONFIG_BRCMFMAC) += brcm80211/
obj-$(CONFIG_BRCMSMAC) += brcm80211/
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ enum ATH_DEBUG {
ATH_DBG_BTCOEX = 0x00002000,
ATH_DBG_WMI = 0x00004000,
ATH_DBG_BSTUCK = 0x00008000,
ATH_DBG_MCI = 0x00010000,
ATH_DBG_ANY = 0xffffffff
};

Expand Down
3 changes: 2 additions & 1 deletion drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,8 @@ static int ath6kl_mgmt_tx(struct wiphy *wiphy, struct net_device *dev,
struct ieee80211_channel *chan, bool offchan,
enum nl80211_channel_type channel_type,
bool channel_type_valid, unsigned int wait,
const u8 *buf, size_t len, bool no_cck, u64 *cookie)
const u8 *buf, size_t len, bool no_cck,
bool dont_wait_for_ack, u64 *cookie)
{
struct ath6kl *ar = ath6kl_priv(dev);
u32 id;
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,8 @@ static int ath6kl_init(struct net_device *dev)
ar->conf_flags = ATH6KL_CONF_IGNORE_ERP_BARKER |
ATH6KL_CONF_ENABLE_11N | ATH6KL_CONF_ENABLE_TX_BURST;

ar->wdev->wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM;
ar->wdev->wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM |
WIPHY_FLAG_HAVE_AP_SME;

status = ath6kl_target_config_wlan_params(ar);
if (!status)
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath9k/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ config ATH9K

config ATH9K_PCI
bool "Atheros ath9k PCI/PCIe bus support"
default y
depends on ATH9K && PCI
---help---
This option enables the PCI bus support in ath9k.
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath9k/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ath9k-y += beacon.o \
main.o \
recv.o \
xmit.o \
mci.o \

ath9k-$(CONFIG_ATH9K_RATE_CONTROL) += rc.o
ath9k-$(CONFIG_ATH9K_PCI) += pci.o
Expand Down
Loading

0 comments on commit e11c259

Please sign in to comment.