pull request: wireless 2013-06-06
Subsystems (8)
Dave,
This pull request includes the non-Broadcom bits of the rejected pull request, plus a few more accumulated fixes from the past week or so. Among the latter are a couple of ath9k fixes intended to address the problems observed by Linus w/ his Pixel, and a CVE fix for a potential security issue in the b43 driver.
For the mac80211 bits, Johannes says:
"Here's one more fix for mac80211 (along with a constify patch it depends on) to work around problems with certain (broken) APs that forget to include HT IEs in their association responses."
Regarding the wl12xx bits, Luca says:
"Here are three patches that I'd like to get into 3.10. Two of them, by me, are related to the firmware version checks in our driver. Without them, the firmwares fail to load. The other one, by Eliad, fixes a typo bug in our 5GHz scanning code."
And as for the Bluetooth bits, Gustavo says:
"The following patches are important bug fixes for 3.10, plus the support for a new device. We do have three fixes from Johan. The first one is a fix to avoid LE-only devices to rely on the (inexistent) extended features data. The second patch fixes length checks on incoming L2CAP signalling PDUs so we can discard PDU whose size doesn't match the one reported in the header. The last one fixes the handling of power on failures, we now report proper errors to mgmt when hci_dev_open()."
Along with that...
Larry Finger corrects an rtlwifi problem that caused some devices to refuse to connect to non-WPA2 networks if the device had previously assocated with a WPA2 network. He also adds a one-line fix to prevent false reports from kmemleak.
Mark A. Greer fixes an out of bounds array access in mwifiex.
Felix Fietkau reverts an earlier ath9k initval patch that reduced rx sensitivity in a number of ath9k devices with no corresponding benefit.
Kees Cook fixes a potential uid-0 to ring-0 escalation in b43 (CVE-2013-2852).
Sujith Manoharan turns-off powersave mode by default for ath9k, and also defaults ath9k to use the minstrel_ht rate control algorithm. Both of these are believed to contribute to greater stability/usability of ath9k in real-world situations.
Yijing Wang fixes an iwlegacy build error for il_pm_ops if CONFIG_PM is set but CONFIG_PM_SLEEP is not set.
Please let me know if there are any problems!
Thanks,
John
---
The following changes since commit 4d3797d7e1861ac1af150a6189315786c5e1c820:
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2013-06-05 19:19:04 +0900)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git for-davem
for you to fetch changes up to 97cc281d75c6dcc7466c8d356112bc13a31300a7:
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem (2013-06-06 09:55:08 -0400)
----------------------------------------------------------------
Bing Zhao (1):
Bluetooth: btmrvl: support Marvell Bluetooth device SD8897
Eliad Peller (1):
wl12xx/wl18xx: scan all 5ghz channels
Felix Fietkau (1):
Revert "ath9k_hw: Update rx gain initval to improve rx sensitivity"
Johan Hedberg (3):
Bluetooth: Fix checks for LE support on LE-only controllers
Bluetooth: Fix missing length checks for L2CAP signalling PDUs
Bluetooth: Fix mgmt handling of power on failures
Johannes Berg (2):
mac80211: constify ieee802_11_parse_elems() argument
mac80211: work around broken APs not including HT info
John W. Linville (2):
Merge branch 'for-john' of git://git.kernel.org/.../jberg/mac80211
Merge branch 'master' of git://git.kernel.org/.../linville/wireless into for-davem
Kees Cook (1):
b43: stop format string leaking into error msgs
Larry Finger (2):
rtlwifi: rtl8192cu: Fix problem in connecting to WEP or WPA(1) networks
rtlwifi: Fix a false leak indication for PCI devices
Luciano Coelho (2):
wl12xx: fix minimum required firmware version for wl127x multirole
wl12xx: increase minimum singlerole firmware version required
Mark A. Greer (1):
mwifiex: debugfs: Fix out of bounds array access
Sujith Manoharan (2):
ath9k: Disable PowerSave by default
ath9k: Use minstrel rate control by default
Yijing Wang (1):
net: wireless: iwlegacy: fix build error for il_pm_ops
drivers/bluetooth/Kconfig | 4 +- drivers/bluetooth/btmrvl_sdio.c | 28 +++++ drivers/net/wireless/ath/ath9k/Kconfig | 10 +- drivers/net/wireless/ath/ath9k/Makefile | 2 +- .../net/wireless/ath/ath9k/ar9003_2p2_initvals.h | 10 +- drivers/net/wireless/ath/ath9k/init.c | 7 +- drivers/net/wireless/ath/ath9k/rc.h | 2 +- drivers/net/wireless/b43/main.c | 2 +- drivers/net/wireless/iwlegacy/common.h | 6 +- drivers/net/wireless/mwifiex/debugfs.c | 22 +++- drivers/net/wireless/rtlwifi/pci.c | 1 + drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 134 +++++++++++++++------ drivers/net/wireless/rtlwifi/rtl8192cu/hw.h | 4 - drivers/net/wireless/rtlwifi/rtl8192cu/mac.c | 18 ++- drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 4 +- drivers/net/wireless/rtlwifi/rtl8192cu/sw.h | 3 + drivers/net/wireless/rtlwifi/usb.c | 13 ++ drivers/net/wireless/rtlwifi/wifi.h | 4 + drivers/net/wireless/ti/wl12xx/scan.c | 2 +- drivers/net/wireless/ti/wl12xx/wl12xx.h | 6 +- drivers/net/wireless/ti/wl18xx/scan.c | 2 +- include/net/bluetooth/hci_core.h | 1 + include/net/bluetooth/mgmt.h | 1 + net/bluetooth/hci_core.c | 6 +- net/bluetooth/l2cap_core.c | 70 ++++++++--- net/bluetooth/mgmt.c | 23 +++- net/bluetooth/smp.c | 4 +- net/mac80211/ieee80211_i.h | 5 +- net/mac80211/mlme.c | 87 +++++++++++-- net/mac80211/util.c | 4 +- 30 files changed, 379 insertions(+), 106 deletions(-)
drivers/bluetooth/Kconfig +2 -2
@@ -201,7 +201,7 @@ config BT_MRVL The core driver to support Marvell Bluetooth devices. This driver is required if you want to support - Marvell Bluetooth devices, such as 8688/8787/8797. + Marvell Bluetooth devices, such as 8688/8787/8797/8897. Say Y here to compile Marvell Bluetooth driver into the kernel or say M to compile it as module.
@@ -214,7 +214,7 @@ config BT_MRVL_SDIO The driver for Marvell Bluetooth chipsets with SDIO interface. This driver is required if you want to use Marvell Bluetooth - devices with SDIO interface. Currently SD8688/SD8787/SD8797 + devices with SDIO interface. Currently SD8688/SD8787/SD8797/SD8897 chipsets are supported. Say Y here to compile support for Marvell BT-over-SDIO driver
drivers/bluetooth/btmrvl_sdio.c +28 -0
@@ -82,6 +82,23 @@ static const struct btmrvl_sdio_card_reg btmrvl_reg_87xx = { .io_port_2 = 0x7a, }; +static const struct btmrvl_sdio_card_reg btmrvl_reg_88xx = { + .cfg =0x00 , + .host_int_mask =0x02 , + .host_intstatus =0x03 , + .card_status =0x50 , + .sq_read_base_addr_a0 =0x60 , + .sq_read_base_addr_a1 =0x61 , + .card_revision =0xbc , + .card_fw_status0 =0xc0 , + .card_fw_status1 =0xc1 , + .card_rx_len =0xc2 , + .card_rx_unit =0xc3 , + .io_port_0 =0xd8 , + .io_port_1 =0xd9 , + .io_port_2 =0xda , +}; +static const struct btmrvl_sdio_device btmrvl_sdio_sd8688 = { .helper ="mrvl/sd8688_helper.bin" , .firmware ="mrvl/sd8688.bin" ,
@@ -103,6 +120,13 @@ static const struct btmrvl_sdio_device btmrvl_sdio_sd8797 = { .sd_blksz_fw_dl = 256, }; +static const struct btmrvl_sdio_device btmrvl_sdio_sd8897 = { + .helper =NULL , + .firmware ="mrvl/sd8897_uapsta.bin" , + .reg = &btmrvl_reg_88xx, + .sd_blksz_fw_dl =256 , +}; +static const struct sdio_device_id btmrvl_sdio_ids[] = {/* Marvell SD8688 Bluetooth device */ {SDIO_DEVICE (SDIO_VENDOR_ID_MARVELL ,0x9105 ),
@@ -116,6 +140,9 @@ static const struct sdio_device_id btmrvl_sdio_ids[] = {/* Marvell SD8797 Bluetooth device */ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x912A), .driver_data = (unsigned long) &btmrvl_sdio_sd8797 }, + /* Marvell SD8897 Bluetooth device */ + { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x912E), + .driver_data = (unsigned long) &btmrvl_sdio_sd8897 }, { } /* Terminating entry */ };
@@ -1194,3 +1221,4 @@ MODULE_FIRMWARE("mrvl/sd8688_helper.bin");MODULE_FIRMWARE ("mrvl/sd8688.bin" );MODULE_FIRMWARE ("mrvl/sd8787_uapsta.bin" );MODULE_FIRMWARE ("mrvl/sd8797_uapsta.bin" ); +MODULE_FIRMWARE ("mrvl/sd8897_uapsta.bin" );
drivers/net/wireless/ath/ath9k/Kconfig +7 -3
@@ -92,13 +92,17 @@ config ATH9K_MAC_DEBUG This option enables collection of statistics for Rx/Tx status data and some other MAC related statistics -config ATH9K_RATE_CONTROL +config ATH9K_LEGACY_RATE_CONTROL bool "Atheros ath9k rate control" depends on ATH9K - default y + default n ---help--- Say Y, if you want to use the ath9k specific rate control - module instead of minstrel_ht. + module instead of minstrel_ht. Be warned that there are various + issues with the ath9k RC and minstrel is a more robust algorithm. + Note that even if this option is selected, "ath9k_rate_control" + has to be passed to mac80211 using the module parameter, + ieee80211_default_rc_algo. config ATH9K_HTC tristate "Atheros HTC based wireless cards support"
drivers/net/wireless/ath/ath9k/Makefile +1 -1
@@ -8,7 +8,7 @@ ath9k-y += beacon.o \ antenna.o ath9k-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += mci.o -ath9k-$(CONFIG_ATH9K_RATE_CONTROL) += rc.o +ath9k-$(CONFIG_ATH9K_LEGACY_RATE_CONTROL) += rc.o ath9k-$(CONFIG_ATH9K_PCI) += pci.o ath9k-$(CONFIG_ATH9K_AHB) += ahb.o ath9k-$(CONFIG_ATH9K_DEBUGFS) += debug.o
drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h +5 -5
@@ -958,11 +958,11 @@ static const u32 ar9300Common_rx_gain_table_2p2[][2] = { {0x0000a074, 0x00000000}, {0x0000a078, 0x00000000}, {0x0000a07c, 0x00000000}, - {0x0000a080, 0x1a1a1a1a}, - {0x0000a084, 0x1a1a1a1a}, - {0x0000a088, 0x1a1a1a1a}, - {0x0000a08c, 0x1a1a1a1a}, - {0x0000a090, 0x171a1a1a}, + {0x0000a080, 0x22222229}, + {0x0000a084, 0x1d1d1d1d}, + {0x0000a088, 0x1d1d1d1d}, + {0x0000a08c, 0x1d1d1d1d}, + {0x0000a090, 0x171d1d1d}, {0x0000a094, 0x11111717}, {0x0000a098, 0x00030311}, {0x0000a09c, 0x00000000},
drivers/net/wireless/ath/ath9k/init.c +1 -6
@@ -787,8 +787,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) hw->wiphy->iface_combinations = if_comb; hw->wiphy->n_iface_combinations =ARRAY_SIZE (if_comb); -if (AR_SREV_5416 (sc->sc_ah)) - hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT ; + hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT ; hw->wiphy->flags |=WIPHY_FLAG_IBSS_RSN ; hw->wiphy->flags |=WIPHY_FLAG_SUPPORTS_TDLS ;
@@ -830,10 +829,6 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) sc->ant_rx = hw->wiphy->available_antennas_rx; sc->ant_tx = hw->wiphy->available_antennas_tx; -#ifdef CONFIG_ATH9K_RATE_CONTROL - hw->rate_control_algorithm ="ath9k_rate_control" ; -#endif -if (sc->sc_ah->caps.hw_caps &ATH9K_HW_CAP_2GHZ ) hw->wiphy->bands[IEEE80211_BAND_2GHZ ] = &sc->sbands[IEEE80211_BAND_2GHZ ];
drivers/net/wireless/ath/ath9k/rc.h +1 -1
@@ -231,7 +231,7 @@ static inline void ath_debug_stat_retries(struct ath_rate_priv *rc, int rix, }#endif -#ifdef CONFIG_ATH9K_RATE_CONTROL +#ifdef CONFIG_ATH9K_LEGACY_RATE_CONTROL int ath_rate_control_register (void );void ath_rate_control_unregister (void );#else
drivers/net/wireless/b43/main.c +1 -1
@@ -2458,7 +2458,7 @@ static void b43_request_firmware(struct work_struct *work)for (i =0 ; i <B43_NR_FWTYPES ; i++) { errmsg = ctx->errors[i];if (strlen (errmsg)) -b43err (dev->wl, errmsg); +b43err (dev->wl,"%s" , errmsg); }b43_print_fw_helptext (dev->wl,1 ); goto out;
drivers/net/wireless/iwlegacy/common.h +3 -3
@@ -1832,16 +1832,16 @@ u32 il_usecs_to_beacons(struct il_priv *il, u32 usec, u32 beacon_interval);__le32 il_add_beacon_time (struct il_priv *il,u32 base,u32 addon,u32 beacon_interval); -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP extern const struct dev_pm_ops il_pm_ops;#define IL_LEGACY_PM_OPS (&il_pm_ops) -#else /* !CONFIG_PM */ +#else /* !CONFIG_PM_SLEEP */ #define IL_LEGACY_PM_OPS NULL -#endif /* !CONFIG_PM */ +#endif /* !CONFIG_PM_SLEEP */ /***************************************************** * Error Handling Debugging
drivers/net/wireless/mwifiex/debugfs.c +17 -5
@@ -26,10 +26,17 @@static struct dentry *mwifiex_dfs_dir;static char *bss_modes[] = { -"Unknown" , -"Ad-hoc" , -"Managed" , -"Auto" +"UNSPECIFIED" , +"ADHOC" , +"STATION" , +"AP" , +"AP_VLAN" , +"WDS" , +"MONITOR" , +"MESH_POINT" , +"P2P_CLIENT" , +"P2P_GO" , +"P2P_DEVICE" , };/* size/addr for mwifiex_debug_info */
@@ -200,7 +207,12 @@ mwifiex_info_read(struct file *file, char __user *ubuf, p +=sprintf (p,"driver_version = %s" , fmt); p +=sprintf (p,"\nverext = %s" , priv->version_str); p +=sprintf (p,"\ninterface_name=\"%s\"\n" , netdev->name); - p +=sprintf (p,"bss_mode=\"%s\"\n" , bss_modes[info.bss_mode]); + +if (info.bss_mode >=ARRAY_SIZE (bss_modes)) + p +=sprintf (p,"bss_mode=\"%d\"\n" , info.bss_mode); +else + p +=sprintf (p,"bss_mode=\"%s\"\n" , bss_modes[info.bss_mode]); + p +=sprintf (p,"media_state=\"%s\"\n" , (!priv->media_connected ?"Disconnected" :"Connected" )); p +=sprintf (p,"mac_address=\"%pM\"\n" , netdev->dev_addr);
drivers/net/wireless/rtlwifi/pci.c +1 -0
@@ -764,6 +764,7 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw) "can't alloc skb for rx\n"); goto done; } +kmemleak_not_leak (new_skb); pci_unmap_single(rtlpci->pdev, *((dma_addr_t *) skb->cb),
drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +100 -34
224 lines not on this page · raw message
drivers/net/wireless/rtlwifi/rtl8192cu/hw.h +0 -4
@@ -98,10 +98,6 @@ void rtl92cu_update_interrupt_mask(struct ieee80211_hw *hw, u32 add_msr, u32 rm_msr);void rtl92cu_get_hw_reg (struct ieee80211_hw *hw,u8 variable,u8 *val);void rtl92cu_set_hw_reg (struct ieee80211_hw *hw,u8 variable,u8 *val); -void rtl92cu_update_hal_rate_table (struct ieee80211_hw *hw, -struct ieee80211_sta *sta, -u8 rssi_level); -void rtl92cu_update_hal_rate_mask (struct ieee80211_hw *hw,u8 rssi_level);void rtl92cu_update_channel_access_setting (struct ieee80211_hw *hw);bool rtl92cu_gpio_radio_on_off_checking (struct ieee80211_hw *hw,u8 * valid);
drivers/net/wireless/rtlwifi/rtl8192cu/mac.c +17 -1
@@ -289,14 +289,30 @@ void rtl92c_set_key(struct ieee80211_hw *hw, u32 key_index, macaddr = cam_const_broad; entry_id = key_index; }else { +if (mac->opmode ==NL80211_IFTYPE_AP || + mac->opmode ==NL80211_IFTYPE_MESH_POINT ) { + entry_id =rtl_cam_get_free_entry (hw, + p_macaddr); +if (entry_id >=TOTAL_CAM_ENTRY ) { +RT_TRACE (rtlpriv,COMP_SEC , +DBG_EMERG , +"Can not find free hw security cam entry\n" ); +return ; + } + }else { + entry_id =CAM_PAIRWISE_KEY_POSITION ; + } + key_index =PAIRWISE_KEYIDX ; - entry_id =CAM_PAIRWISE_KEY_POSITION ; is_pairwise = true; } }if (rtlpriv->sec.key_len[key_index] ==0 ) {RT_TRACE (rtlpriv,COMP_SEC ,DBG_DMESG ,"delete one entry\n" ); +if (mac->opmode ==NL80211_IFTYPE_AP || + mac->opmode ==NL80211_IFTYPE_MESH_POINT ) +rtl_cam_del_entry (hw, p_macaddr);rtl_cam_delete_one_entry (hw, p_macaddr, entry_id); }else { RT_TRACE(rtlpriv, COMP_SEC, DBG_LOUD,
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +2 -2
@@ -106,8 +106,7 @@ static struct rtl_hal_ops rtl8192cu_hal_ops = { .update_interrupt_mask = rtl92cu_update_interrupt_mask, .get_hw_reg = rtl92cu_get_hw_reg, .set_hw_reg = rtl92cu_set_hw_reg, - .update_rate_tbl = rtl92cu_update_hal_rate_table, - .update_rate_mask = rtl92cu_update_hal_rate_mask, + .update_rate_tbl = rtl92cu_update_hal_rate_tbl, .fill_tx_desc = rtl92cu_tx_fill_desc, .fill_fake_txdesc = rtl92cu_fill_fake_txdesc, .fill_tx_cmddesc = rtl92cu_tx_fill_cmddesc,
@@ -137,6 +136,7 @@ static struct rtl_hal_ops rtl8192cu_hal_ops = { .phy_lc_calibrate = _rtl92cu_phy_lc_calibrate, .phy_set_bw_mode_callback = rtl92cu_phy_set_bw_mode_callback, .dm_dynamic_txpower = rtl92cu_dm_dynamic_txpower, + .fill_h2c_cmd = rtl92c_fill_h2c_cmd, };static struct rtl_mod_params rtl92cu_mod_params = {
drivers/net/wireless/rtlwifi/rtl8192cu/sw.h +3 -0
@@ -49,5 +49,8 @@ bool rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw,u32 rtl92cu_phy_query_rf_reg (struct ieee80211_hw *hw,enum radio_path rfpath,u32 regaddr,u32 bitmask);void rtl92cu_phy_set_bw_mode_callback (struct ieee80211_hw *hw); +void rtl92cu_update_hal_rate_tbl (struct ieee80211_hw *hw, +struct ieee80211_sta *sta, +u8 rssi_level);#endif
drivers/net/wireless/rtlwifi/usb.c +13 -0
@@ -824,6 +824,7 @@ static void rtl_usb_stop(struct ieee80211_hw *hw)/* should after adapter start and interrupt enable. */ set_hal_stop (rtlhal); +cancel_work_sync (&rtlpriv->works.fill_h2c_cmd);/* Enable software */ SET_USB_STOP (rtlusb);rtl_usb_deinit (hw);
@@ -1026,6 +1027,16 @@ static bool rtl_usb_tx_chk_waitq_insert(struct ieee80211_hw *hw,return false; } +static void rtl_fill_h2c_cmd_work_callback (struct work_struct *work) +{ +struct rtl_works *rtlworks = + container_of(work, struct rtl_works, fill_h2c_cmd); +struct ieee80211_hw *hw = rtlworks->hw; +struct rtl_priv *rtlpriv =rtl_priv (hw); + + rtlpriv->cfg->ops->fill_h2c_cmd (hw,H2C_RA_MASK ,5 , rtlpriv->rate_mask); +} +static struct rtl_intf_ops rtl_usb_ops = { .adapter_start = rtl_usb_start, .adapter_stop = rtl_usb_stop,
@@ -1057,6 +1068,8 @@ int rtl_usb_probe(struct usb_interface *intf,/* this spin lock must be initialized early */ spin_lock_init (&rtlpriv->locks.usb_lock); +INIT_WORK (&rtlpriv->works.fill_h2c_cmd, + rtl_fill_h2c_cmd_work_callback); rtlpriv->usb_data_index =0 ;init_completion (&rtlpriv->firmware_loading_complete);
drivers/net/wireless/rtlwifi/wifi.h +4 -0
@@ -1736,6 +1736,8 @@ struct rtl_hal_ops {void (*bt_wifi_media_status_notify) (struct ieee80211_hw *hw,bool mstate);void (*bt_coex_off_before_lps) (struct ieee80211_hw *hw); +void (*fill_h2c_cmd) (struct ieee80211_hw *hw,u8 element_id, +u32 cmd_len,u8 *p_cmdbuffer); };struct rtl_intf_ops {
@@ -1869,6 +1871,7 @@ struct rtl_works {struct delayed_work fwevt_wq;struct work_struct lps_change_work; +struct work_struct fill_h2c_cmd; };struct rtl_debug {
@@ -2048,6 +2051,7 @@ struct rtl_priv { }; };bool enter_ps;/* true when entering PS */ +u8 rate_mask[5 ];/*This must be the last item so that it points to the data allocated
drivers/net/wireless/ti/wl12xx/scan.c +1 -1
@@ -310,7 +310,7 @@ static void wl12xx_adjust_channels(struct wl1271_cmd_sched_scan_config *cmd,memcpy (cmd->channels_2, cmd_channels->channels_2,sizeof (cmd->channels_2));memcpy (cmd->channels_5, cmd_channels->channels_5, -sizeof (cmd->channels_2)); +sizeof (cmd->channels_5));/* channels_4 are not supported, so no need to copy them */ }
drivers/net/wireless/ti/wl12xx/wl12xx.h +3 -3
@@ -36,12 +36,12 @@#define WL127X_IFTYPE_SR_VER 3#define WL127X_MAJOR_SR_VER 10#define WL127X_SUBTYPE_SR_VER WLCORE_FW_VER_IGNORE -#define WL127X_MINOR_SR_VER 115 +#define WL127X_MINOR_SR_VER 133/* minimum multi-role FW version for wl127x */ #define WL127X_IFTYPE_MR_VER 5#define WL127X_MAJOR_MR_VER 7#define WL127X_SUBTYPE_MR_VER WLCORE_FW_VER_IGNORE -#define WL127X_MINOR_MR_VER 115 +#define WL127X_MINOR_MR_VER 42/* FW chip version for wl128x */ #define WL128X_CHIP_VER 7
@@ -49,7 +49,7 @@#define WL128X_IFTYPE_SR_VER 3#define WL128X_MAJOR_SR_VER 10#define WL128X_SUBTYPE_SR_VER WLCORE_FW_VER_IGNORE -#define WL128X_MINOR_SR_VER 115 +#define WL128X_MINOR_SR_VER 133/* minimum multi-role FW version for wl128x */ #define WL128X_IFTYPE_MR_VER 5#define WL128X_MAJOR_MR_VER 7
drivers/net/wireless/ti/wl18xx/scan.c +1 -1
@@ -34,7 +34,7 @@ static void wl18xx_adjust_channels(struct wl18xx_cmd_scan_params *cmd,memcpy (cmd->channels_2, cmd_channels->channels_2,sizeof (cmd->channels_2));memcpy (cmd->channels_5, cmd_channels->channels_5, -sizeof (cmd->channels_2)); +sizeof (cmd->channels_5));/* channels_4 are not supported, so no need to copy them */ }
include/net/bluetooth/hci_core.h +1 -0
@@ -1117,6 +1117,7 @@ void hci_sock_dev_event(struct hci_dev *hdev, int event);int mgmt_control (struct sock *sk,struct msghdr *msg,size_t len);int mgmt_index_added (struct hci_dev *hdev);int mgmt_index_removed (struct hci_dev *hdev); +int mgmt_set_powered_failed (struct hci_dev *hdev,int err);int mgmt_powered (struct hci_dev *hdev,u8 powered);int mgmt_discoverable (struct hci_dev *hdev,u8 discoverable);int mgmt_connectable (struct hci_dev *hdev,u8 connectable);
include/net/bluetooth/mgmt.h +1 -0
@@ -42,6 +42,7 @@#define MGMT_STATUS_NOT_POWERED 0x0f#define MGMT_STATUS_CANCELLED 0x10#define MGMT_STATUS_INVALID_INDEX 0x11 +#define MGMT_STATUS_RFKILLED 0x12struct mgmt_hdr {__le16 opcode;
net/bluetooth/hci_core.c +5 -1
@@ -1555,11 +1555,15 @@ static const struct rfkill_ops hci_rfkill_ops = {static void hci_power_on (struct work_struct *work) { struct hci_dev *hdev = container_of(work, struct hci_dev, power_on); +int err;BT_DBG ("%s" , hdev->name); -if (hci_dev_open (hdev->id) <0 ) + err =hci_dev_open (hdev->id); +if (err <0 ) { +mgmt_set_powered_failed (hdev, err);return ; + }if (test_bit (HCI_AUTO_OFF , &hdev->dev_flags)) queue_delayed_work(hdev->req_workqueue, &hdev->power_off,
net/bluetooth/l2cap_core.c +52 -18
202 lines not on this page · raw message
net/bluetooth/mgmt.c +22 -1
@@ -2700,7 +2700,7 @@ static int start_discovery(struct sock *sk, struct hci_dev *hdev,break ;case DISCOV_TYPE_LE : -if (!lmp_host_le_capable (hdev)) { +if (!test_bit (HCI_LE_ENABLED , &hdev->dev_flags)) { err =cmd_status (sk, hdev->id,MGMT_OP_START_DISCOVERY ,MGMT_STATUS_NOT_SUPPORTED );mgmt_pending_remove (cmd);
@@ -3418,6 +3418,27 @@ new_settings:return err; } +int mgmt_set_powered_failed (struct hci_dev *hdev,int err) +{ +struct pending_cmd *cmd; +u8 status; + + cmd =mgmt_pending_find (MGMT_OP_SET_POWERED , hdev); +if (!cmd) +return -ENOENT ; + +if (err == -ERFKILL ) + status =MGMT_STATUS_RFKILLED ; +else + status =MGMT_STATUS_FAILED ; + + err =cmd_status (cmd->sk, hdev->id,MGMT_OP_SET_POWERED , status); + +mgmt_pending_remove (cmd); + +return err; +} +int mgmt_discoverable (struct hci_dev *hdev,u8 discoverable) {struct cmd_lookup match = {NULL , hdev };
net/bluetooth/smp.c +2 -2
@@ -770,7 +770,7 @@ int smp_conn_security(struct hci_conn *hcon, __u8 sec_level)BT_DBG ("conn %p hcon %p level 0x%2.2x" , conn, hcon, sec_level); -if (!lmp_host_le_capable (hcon->hdev)) +if (!test_bit (HCI_LE_ENABLED , &hcon->hdev->dev_flags))return 1 ;if (sec_level ==BT_SECURITY_LOW )
@@ -851,7 +851,7 @@ int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb)__u8 reason;int err =0 ; -if (!lmp_host_le_capable (conn->hcon->hdev)) { +if (!test_bit (HCI_LE_ENABLED , &conn->hcon->hdev->dev_flags)) { err = -ENOTSUPP ; reason =SMP_PAIRING_NOTSUPP ; goto done;
net/mac80211/ieee80211_i.h +3 -2
@@ -1497,10 +1497,11 @@ static inline void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata,ieee80211_tx_skb_tid (sdata, skb,7 ); } -u32 ieee802_11_parse_elems_crc (u8 *start,size_t len,bool action, +u32 ieee802_11_parse_elems_crc (const u8 *start,size_t len,bool action,struct ieee802_11_elems *elems,u64 filter,u32 crc); -static inline void ieee802_11_parse_elems (u8 *start,size_t len,bool action, +static inline void ieee802_11_parse_elems (const u8 *start,size_t len, +bool action,struct ieee802_11_elems *elems) {ieee802_11_parse_elems_crc (start, len, action, elems,0 ,0 );
net/mac80211/mlme.c +80 -7
130 lines not on this page · raw message
net/mac80211/util.c +2 -2
@@ -661,12 +661,12 @@ void ieee80211_queue_delayed_work(struct ieee80211_hw *hw, }EXPORT_SYMBOL (ieee80211_queue_delayed_work); -u32 ieee802_11_parse_elems_crc (u8 *start,size_t len,bool action, +u32 ieee802_11_parse_elems_crc (const u8 *start,size_t len,bool action,struct ieee802_11_elems *elems,u64 filter,u32 crc) {size_t left = len; -u8 *pos = start; +const u8 *pos = start;bool calc_crc = filter !=0 ;DECLARE_BITMAP (seen_elems,256 );const u8 *ie;
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready.
David Miller
maintainerFrom: "John W. Linville" <[email protected]>
Date: Thu, 6 Jun 2013 15:09:30 -0400
Quoted 2 lines
Johannes Berg (2):
mac80211: constify ieee802_11_parse_elems() argument
Such cleanups are absolutely, positively, not appropriate at this time.
Sorry.
I still can't pull this.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Johannes Berg
maintainerQuoted 8 lines · David Miller
From: "John W. Linville" <[email protected]>
Date: Thu, 6 Jun 2013 15:09:30 -0400Quoted 2 lines
Johannes Berg (2):
mac80211: constify ieee802_11_parse_elems() argumentSuch cleanups are absolutely, positively, not appropriate at this time.
My other fix depends on this to not have a const warning. I can add a cast to pretend the input isn't const at this point, but that seemed like a bad idea as well.
johannes
David Miller
maintainerFrom: Johannes Berg <[email protected]>
Date: Wed, 12 Jun 2013 08:26:49 +0200
Quoted 7 lines · David Miller
Quoted 6 lines
From: "John W. Linville" <[email protected]>
Date: Thu, 6 Jun 2013 15:09:30 -0400Quoted 2 lines
Johannes Berg (2):
mac80211: constify ieee802_11_parse_elems() argument
Quoted 6 lines
Quoted 2 lines
Such cleanups are absolutely, positively, not appropriate at this time.
My other fix depends on this to not have a const warning. I can add a cast to pretend the input isn't const at this point, but that seemed like a bad idea as well.
I would combine the two changes into one commit, because then this necessity is clear and you can even explain this in the commit message so that there is no argument about the justification.
Thanks.
Johannes Berg
maintainerQuoted 13 lines · David Miller
From: Johannes Berg <[email protected]>
Date: Wed, 12 Jun 2013 08:26:49 +0200Quoted 10 lines · David Miller
Quoted 8 lines
From: "John W. Linville" <[email protected]>
Date: Thu, 6 Jun 2013 15:09:30 -0400Quoted 2 lines
Johannes Berg (2):
mac80211: constify ieee802_11_parse_elems() argumentSuch cleanups are absolutely, positively, not appropriate at this time.
Quoted 7 lines
Quoted 3 lines
My other fix depends on this to not have a const warning. I can add a cast to pretend the input isn't const at this point, but that seemed like a bad idea as well.
I would combine the two changes into one commit, because then this necessity is clear and you can even explain this in the commit message so that there is no argument about the justification.
Sure, I can do that too.
johannes
David Miller
maintainerJohn, I also don't like the ATK9K Kconfig option name change added in this pull request, this is exactly the kind of thing that drives Linus insane.
Change the default, fine, but changing the name is unnecssary churn and adds a new config prompt that people are going to respond to incorrectly when they type "make oldconfig"
Quoted 7 lines · David Miller
John, I also don't like the ATK9K
Kconfigoption name change added in this pull request, this is exactly the kind of thing that drives Linus insane.Change the default, fine, but changing the name is unnecssary churn and adds a new config prompt that people are going to respond to incorrectly when they type "make oldconfig"
This was Linus' suggestion: https://patchwork.kernel.org/patch/2676971/
The RH bugzilla appears to be down at the moment, but more background for the bug is here: https://bugzilla.redhat.com/show_bug.cgi?id=927191
Sujith
David Miller
maintainerFrom: Sujith Manoharan <[email protected]>
Date: Wed, 12 Jun 2013 12:54:32 +0530
Quoted 5 lines
Quoted 4 lines · David Miller
John, I also don't like the ATK9K
Kconfigoption name change added in this pull request, this is exactly the kind of thing that drives Linus insane.
Quoted 8 lines
Quoted 3 lines
Change the default, fine, but changing the name is unnecssary churn and adds a new config prompt that people are going to respond to incorrectly when they type "make oldconfig"
This was Linus' suggestion: https://patchwork.kernel.org/patch/2676971/
The RH bugzilla appears to be down at the moment, but more background for the bug is here: https://bugzilla.redhat.com/show_bug.cgi?id=927191
Fair enough, I rescind my objection.
Quoted 6 lines · David Miller
From: "John W. Linville" <[email protected]>
Date: Thu, 6 Jun 2013 15:09:30 -0400Quoted 2 lines
Johannes Berg (2):
mac80211: constify ieee802_11_parse_elems() argument
Quoted 6 lines
Such cleanups are absolutely, positively, not appropriate at this time.
Sorry.
I still can't pull this.
OK, a respin is coming.
Note to my feeder trees, another rebase is coming...
John
Signature · 6 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
pull request: wireless 2013-06-12
In reply to John W. LinvilleDave,
For now I have dropped the mac80211 tree from this request. We are developing a little backlog of fixes and I would like to avoid introducing any more uncertainty to this pull request for the 3.10 stream. All the other bits are the same as what was in the 2013-06-06 request, including the ath9k fixes intended to address the problems observed by Linus w/ his Pixel, and a CVE fix for a potential security issue in the b43 driver.
Regarding the wl12xx bits, Luca says:
"Here are three patches that I'd like to get into 3.10. Two of them, by me, are related to the firmware version checks in our driver. Without them, the firmwares fail to load. The other one, by Eliad, fixes a typo bug in our 5GHz scanning code."
And as for the Bluetooth bits, Gustavo says:
"The following patches are important bug fixes for 3.10, plus the support for a new device. We do have three fixes from Johan. The first one is a fix to avoid LE-only devices to rely on the (inexistent) extended features data. The second patch fixes length checks on incoming L2CAP signalling PDUs so we can discard PDU whose size doesn't match the one reported in the header. The last one fixes the handling of power on failures, we now report proper errors to mgmt when hci_dev_open()."
Along with that...
Larry Finger corrects an rtlwifi problem that caused some devices to refuse to connect to non-WPA2 networks if the device had previously assocated with a WPA2 network. He also adds a one-line fix to prevent false reports from kmemleak.
Mark A. Greer fixes an out of bounds array access in mwifiex.
Felix Fietkau reverts an earlier ath9k initval patch that reduced rx sensitivity in a number of ath9k devices with no corresponding benefit.
Kees Cook fixes a potential uid-0 to ring-0 escalation in b43 (CVE-2013-2852).
Sujith Manoharan turns-off powersave mode by default for ath9k, and also defaults ath9k to use the minstrel_ht rate control algorithm. Both of these are believed to contribute to greater stability/usability of ath9k in real-world situations.
Yijing Wang fixes an iwlegacy build error for il_pm_ops if CONFIG_PM is set but CONFIG_PM_SLEEP is not set.
Please let me know if there are any problems!
Thanks,
John
---
The following changes since commit b79462a8b9f9a452edc20c64a70a89ba3b0a6a88:
team: fix checks in team_get_first_port_txable_rcu() (2013-06-12 00:56:27 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git for-davem
for you to fetch changes up to 42d887a68013b0a04f7b8ebfa4999a8d5df6775c:
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem (2013-06-12 10:57:04 -0400)
----------------------------------------------------------------
Bing Zhao (1):
Bluetooth: btmrvl: support Marvell Bluetooth device SD8897
Eliad Peller (1):
wl12xx/wl18xx: scan all 5ghz channels
Felix Fietkau (1):
Revert "ath9k_hw: Update rx gain initval to improve rx sensitivity"
Johan Hedberg (3):
Bluetooth: Fix checks for LE support on LE-only controllers
Bluetooth: Fix missing length checks for L2CAP signalling PDUs
Bluetooth: Fix mgmt handling of power on failures
John W. Linville (1):
Merge branch 'master' of git://git.kernel.org/.../linville/wireless into for-davem
Kees Cook (1):
b43: stop format string leaking into error msgs
Larry Finger (2):
rtlwifi: rtl8192cu: Fix problem in connecting to WEP or WPA(1) networks
rtlwifi: Fix a false leak indication for PCI devices
Luciano Coelho (2):
wl12xx: fix minimum required firmware version for wl127x multirole
wl12xx: increase minimum singlerole firmware version required
Mark A. Greer (1):
mwifiex: debugfs: Fix out of bounds array access
Sujith Manoharan (2):
ath9k: Disable PowerSave by default
ath9k: Use minstrel rate control by default
Yijing Wang (1):
net: wireless: iwlegacy: fix build error for il_pm_ops
drivers/bluetooth/Kconfig | 4 +- drivers/bluetooth/btmrvl_sdio.c | 28 +++++ drivers/net/wireless/ath/ath9k/Kconfig | 10 +- drivers/net/wireless/ath/ath9k/Makefile | 2 +- .../net/wireless/ath/ath9k/ar9003_2p2_initvals.h | 10 +- drivers/net/wireless/ath/ath9k/init.c | 7 +- drivers/net/wireless/ath/ath9k/rc.h | 2 +- drivers/net/wireless/b43/main.c | 2 +- drivers/net/wireless/iwlegacy/common.h | 6 +- drivers/net/wireless/mwifiex/debugfs.c | 22 +++- drivers/net/wireless/rtlwifi/pci.c | 1 + drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 134 +++++++++++++++------ drivers/net/wireless/rtlwifi/rtl8192cu/hw.h | 4 - drivers/net/wireless/rtlwifi/rtl8192cu/mac.c | 18 ++- drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 4 +- drivers/net/wireless/rtlwifi/rtl8192cu/sw.h | 3 + drivers/net/wireless/rtlwifi/usb.c | 13 ++ drivers/net/wireless/rtlwifi/wifi.h | 4 + drivers/net/wireless/ti/wl12xx/scan.c | 2 +- drivers/net/wireless/ti/wl12xx/wl12xx.h | 6 +- drivers/net/wireless/ti/wl18xx/scan.c | 2 +- include/net/bluetooth/hci_core.h | 1 + include/net/bluetooth/mgmt.h | 1 + net/bluetooth/hci_core.c | 6 +- net/bluetooth/l2cap_core.c | 70 ++++++++--- net/bluetooth/mgmt.c | 23 +++- net/bluetooth/smp.c | 4 +- 27 files changed, 294 insertions(+), 95 deletions(-)
drivers/bluetooth/Kconfig +2 -2
@@ -201,7 +201,7 @@ config BT_MRVL The core driver to support Marvell Bluetooth devices. This driver is required if you want to support - Marvell Bluetooth devices, such as 8688/8787/8797. + Marvell Bluetooth devices, such as 8688/8787/8797/8897. Say Y here to compile Marvell Bluetooth driver into the kernel or say M to compile it as module.
@@ -214,7 +214,7 @@ config BT_MRVL_SDIO The driver for Marvell Bluetooth chipsets with SDIO interface. This driver is required if you want to use Marvell Bluetooth - devices with SDIO interface. Currently SD8688/SD8787/SD8797 + devices with SDIO interface. Currently SD8688/SD8787/SD8797/SD8897 chipsets are supported. Say Y here to compile support for Marvell BT-over-SDIO driver
drivers/bluetooth/btmrvl_sdio.c +28 -0
@@ -82,6 +82,23 @@ static const struct btmrvl_sdio_card_reg btmrvl_reg_87xx = { .io_port_2 = 0x7a, }; +static const struct btmrvl_sdio_card_reg btmrvl_reg_88xx = { + .cfg =0x00 , + .host_int_mask =0x02 , + .host_intstatus =0x03 , + .card_status =0x50 , + .sq_read_base_addr_a0 =0x60 , + .sq_read_base_addr_a1 =0x61 , + .card_revision =0xbc , + .card_fw_status0 =0xc0 , + .card_fw_status1 =0xc1 , + .card_rx_len =0xc2 , + .card_rx_unit =0xc3 , + .io_port_0 =0xd8 , + .io_port_1 =0xd9 , + .io_port_2 =0xda , +}; +static const struct btmrvl_sdio_device btmrvl_sdio_sd8688 = { .helper ="mrvl/sd8688_helper.bin" , .firmware ="mrvl/sd8688.bin" ,
@@ -103,6 +120,13 @@ static const struct btmrvl_sdio_device btmrvl_sdio_sd8797 = { .sd_blksz_fw_dl = 256, }; +static const struct btmrvl_sdio_device btmrvl_sdio_sd8897 = { + .helper =NULL , + .firmware ="mrvl/sd8897_uapsta.bin" , + .reg = &btmrvl_reg_88xx, + .sd_blksz_fw_dl =256 , +}; +static const struct sdio_device_id btmrvl_sdio_ids[] = {/* Marvell SD8688 Bluetooth device */ {SDIO_DEVICE (SDIO_VENDOR_ID_MARVELL ,0x9105 ),
@@ -116,6 +140,9 @@ static const struct sdio_device_id btmrvl_sdio_ids[] = {/* Marvell SD8797 Bluetooth device */ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x912A), .driver_data = (unsigned long) &btmrvl_sdio_sd8797 }, + /* Marvell SD8897 Bluetooth device */ + { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x912E), + .driver_data = (unsigned long) &btmrvl_sdio_sd8897 }, { } /* Terminating entry */ };
@@ -1194,3 +1221,4 @@ MODULE_FIRMWARE("mrvl/sd8688_helper.bin");MODULE_FIRMWARE ("mrvl/sd8688.bin" );MODULE_FIRMWARE ("mrvl/sd8787_uapsta.bin" );MODULE_FIRMWARE ("mrvl/sd8797_uapsta.bin" ); +MODULE_FIRMWARE ("mrvl/sd8897_uapsta.bin" );
drivers/net/wireless/ath/ath9k/Kconfig +7 -3
@@ -92,13 +92,17 @@ config ATH9K_MAC_DEBUG This option enables collection of statistics for Rx/Tx status data and some other MAC related statistics -config ATH9K_RATE_CONTROL +config ATH9K_LEGACY_RATE_CONTROL bool "Atheros ath9k rate control" depends on ATH9K - default y + default n ---help--- Say Y, if you want to use the ath9k specific rate control - module instead of minstrel_ht. + module instead of minstrel_ht. Be warned that there are various + issues with the ath9k RC and minstrel is a more robust algorithm. + Note that even if this option is selected, "ath9k_rate_control" + has to be passed to mac80211 using the module parameter, + ieee80211_default_rc_algo. config ATH9K_HTC tristate "Atheros HTC based wireless cards support"
drivers/net/wireless/ath/ath9k/Makefile +1 -1
@@ -8,7 +8,7 @@ ath9k-y += beacon.o \ antenna.o ath9k-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += mci.o -ath9k-$(CONFIG_ATH9K_RATE_CONTROL) += rc.o +ath9k-$(CONFIG_ATH9K_LEGACY_RATE_CONTROL) += rc.o ath9k-$(CONFIG_ATH9K_PCI) += pci.o ath9k-$(CONFIG_ATH9K_AHB) += ahb.o ath9k-$(CONFIG_ATH9K_DEBUGFS) += debug.o
drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h +5 -5
@@ -958,11 +958,11 @@ static const u32 ar9300Common_rx_gain_table_2p2[][2] = { {0x0000a074, 0x00000000}, {0x0000a078, 0x00000000}, {0x0000a07c, 0x00000000}, - {0x0000a080, 0x1a1a1a1a}, - {0x0000a084, 0x1a1a1a1a}, - {0x0000a088, 0x1a1a1a1a}, - {0x0000a08c, 0x1a1a1a1a}, - {0x0000a090, 0x171a1a1a}, + {0x0000a080, 0x22222229}, + {0x0000a084, 0x1d1d1d1d}, + {0x0000a088, 0x1d1d1d1d}, + {0x0000a08c, 0x1d1d1d1d}, + {0x0000a090, 0x171d1d1d}, {0x0000a094, 0x11111717}, {0x0000a098, 0x00030311}, {0x0000a09c, 0x00000000},
drivers/net/wireless/ath/ath9k/init.c +1 -6
@@ -787,8 +787,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) hw->wiphy->iface_combinations = if_comb; hw->wiphy->n_iface_combinations =ARRAY_SIZE (if_comb); -if (AR_SREV_5416 (sc->sc_ah)) - hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT ; + hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT ; hw->wiphy->flags |=WIPHY_FLAG_IBSS_RSN ; hw->wiphy->flags |=WIPHY_FLAG_SUPPORTS_TDLS ;
@@ -830,10 +829,6 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) sc->ant_rx = hw->wiphy->available_antennas_rx; sc->ant_tx = hw->wiphy->available_antennas_tx; -#ifdef CONFIG_ATH9K_RATE_CONTROL - hw->rate_control_algorithm ="ath9k_rate_control" ; -#endif -if (sc->sc_ah->caps.hw_caps &ATH9K_HW_CAP_2GHZ ) hw->wiphy->bands[IEEE80211_BAND_2GHZ ] = &sc->sbands[IEEE80211_BAND_2GHZ ];
drivers/net/wireless/ath/ath9k/rc.h +1 -1
@@ -231,7 +231,7 @@ static inline void ath_debug_stat_retries(struct ath_rate_priv *rc, int rix, }#endif -#ifdef CONFIG_ATH9K_RATE_CONTROL +#ifdef CONFIG_ATH9K_LEGACY_RATE_CONTROL int ath_rate_control_register (void );void ath_rate_control_unregister (void );#else
drivers/net/wireless/b43/main.c +1 -1
@@ -2458,7 +2458,7 @@ static void b43_request_firmware(struct work_struct *work)for (i =0 ; i <B43_NR_FWTYPES ; i++) { errmsg = ctx->errors[i];if (strlen (errmsg)) -b43err (dev->wl, errmsg); +b43err (dev->wl,"%s" , errmsg); }b43_print_fw_helptext (dev->wl,1 ); goto out;
drivers/net/wireless/iwlegacy/common.h +3 -3
@@ -1832,16 +1832,16 @@ u32 il_usecs_to_beacons(struct il_priv *il, u32 usec, u32 beacon_interval);__le32 il_add_beacon_time (struct il_priv *il,u32 base,u32 addon,u32 beacon_interval); -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP extern const struct dev_pm_ops il_pm_ops;#define IL_LEGACY_PM_OPS (&il_pm_ops) -#else /* !CONFIG_PM */ +#else /* !CONFIG_PM_SLEEP */ #define IL_LEGACY_PM_OPS NULL -#endif /* !CONFIG_PM */ +#endif /* !CONFIG_PM_SLEEP */ /***************************************************** * Error Handling Debugging
drivers/net/wireless/mwifiex/debugfs.c +17 -5
@@ -26,10 +26,17 @@static struct dentry *mwifiex_dfs_dir;static char *bss_modes[] = { -"Unknown" , -"Ad-hoc" , -"Managed" , -"Auto" +"UNSPECIFIED" , +"ADHOC" , +"STATION" , +"AP" , +"AP_VLAN" , +"WDS" , +"MONITOR" , +"MESH_POINT" , +"P2P_CLIENT" , +"P2P_GO" , +"P2P_DEVICE" , };/* size/addr for mwifiex_debug_info */
@@ -200,7 +207,12 @@ mwifiex_info_read(struct file *file, char __user *ubuf, p +=sprintf (p,"driver_version = %s" , fmt); p +=sprintf (p,"\nverext = %s" , priv->version_str); p +=sprintf (p,"\ninterface_name=\"%s\"\n" , netdev->name); - p +=sprintf (p,"bss_mode=\"%s\"\n" , bss_modes[info.bss_mode]); + +if (info.bss_mode >=ARRAY_SIZE (bss_modes)) + p +=sprintf (p,"bss_mode=\"%d\"\n" , info.bss_mode); +else + p +=sprintf (p,"bss_mode=\"%s\"\n" , bss_modes[info.bss_mode]); + p +=sprintf (p,"media_state=\"%s\"\n" , (!priv->media_connected ?"Disconnected" :"Connected" )); p +=sprintf (p,"mac_address=\"%pM\"\n" , netdev->dev_addr);
drivers/net/wireless/rtlwifi/pci.c +1 -0
@@ -764,6 +764,7 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw) "can't alloc skb for rx\n"); goto done; } +kmemleak_not_leak (new_skb); pci_unmap_single(rtlpci->pdev, *((dma_addr_t *) skb->cb),
drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +100 -34
224 lines not on this page · raw message
drivers/net/wireless/rtlwifi/rtl8192cu/hw.h +0 -4
@@ -98,10 +98,6 @@ void rtl92cu_update_interrupt_mask(struct ieee80211_hw *hw, u32 add_msr, u32 rm_msr);void rtl92cu_get_hw_reg (struct ieee80211_hw *hw,u8 variable,u8 *val);void rtl92cu_set_hw_reg (struct ieee80211_hw *hw,u8 variable,u8 *val); -void rtl92cu_update_hal_rate_table (struct ieee80211_hw *hw, -struct ieee80211_sta *sta, -u8 rssi_level); -void rtl92cu_update_hal_rate_mask (struct ieee80211_hw *hw,u8 rssi_level);void rtl92cu_update_channel_access_setting (struct ieee80211_hw *hw);bool rtl92cu_gpio_radio_on_off_checking (struct ieee80211_hw *hw,u8 * valid);
drivers/net/wireless/rtlwifi/rtl8192cu/mac.c +17 -1
@@ -289,14 +289,30 @@ void rtl92c_set_key(struct ieee80211_hw *hw, u32 key_index, macaddr = cam_const_broad; entry_id = key_index; }else { +if (mac->opmode ==NL80211_IFTYPE_AP || + mac->opmode ==NL80211_IFTYPE_MESH_POINT ) { + entry_id =rtl_cam_get_free_entry (hw, + p_macaddr); +if (entry_id >=TOTAL_CAM_ENTRY ) { +RT_TRACE (rtlpriv,COMP_SEC , +DBG_EMERG , +"Can not find free hw security cam entry\n" ); +return ; + } + }else { + entry_id =CAM_PAIRWISE_KEY_POSITION ; + } + key_index =PAIRWISE_KEYIDX ; - entry_id =CAM_PAIRWISE_KEY_POSITION ; is_pairwise = true; } }if (rtlpriv->sec.key_len[key_index] ==0 ) {RT_TRACE (rtlpriv,COMP_SEC ,DBG_DMESG ,"delete one entry\n" ); +if (mac->opmode ==NL80211_IFTYPE_AP || + mac->opmode ==NL80211_IFTYPE_MESH_POINT ) +rtl_cam_del_entry (hw, p_macaddr);rtl_cam_delete_one_entry (hw, p_macaddr, entry_id); }else { RT_TRACE(rtlpriv, COMP_SEC, DBG_LOUD,
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +2 -2
@@ -106,8 +106,7 @@ static struct rtl_hal_ops rtl8192cu_hal_ops = { .update_interrupt_mask = rtl92cu_update_interrupt_mask, .get_hw_reg = rtl92cu_get_hw_reg, .set_hw_reg = rtl92cu_set_hw_reg, - .update_rate_tbl = rtl92cu_update_hal_rate_table, - .update_rate_mask = rtl92cu_update_hal_rate_mask, + .update_rate_tbl = rtl92cu_update_hal_rate_tbl, .fill_tx_desc = rtl92cu_tx_fill_desc, .fill_fake_txdesc = rtl92cu_fill_fake_txdesc, .fill_tx_cmddesc = rtl92cu_tx_fill_cmddesc,
@@ -137,6 +136,7 @@ static struct rtl_hal_ops rtl8192cu_hal_ops = { .phy_lc_calibrate = _rtl92cu_phy_lc_calibrate, .phy_set_bw_mode_callback = rtl92cu_phy_set_bw_mode_callback, .dm_dynamic_txpower = rtl92cu_dm_dynamic_txpower, + .fill_h2c_cmd = rtl92c_fill_h2c_cmd, };static struct rtl_mod_params rtl92cu_mod_params = {
drivers/net/wireless/rtlwifi/rtl8192cu/sw.h +3 -0
@@ -49,5 +49,8 @@ bool rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw,u32 rtl92cu_phy_query_rf_reg (struct ieee80211_hw *hw,enum radio_path rfpath,u32 regaddr,u32 bitmask);void rtl92cu_phy_set_bw_mode_callback (struct ieee80211_hw *hw); +void rtl92cu_update_hal_rate_tbl (struct ieee80211_hw *hw, +struct ieee80211_sta *sta, +u8 rssi_level);#endif
drivers/net/wireless/rtlwifi/usb.c +13 -0
@@ -824,6 +824,7 @@ static void rtl_usb_stop(struct ieee80211_hw *hw)/* should after adapter start and interrupt enable. */ set_hal_stop (rtlhal); +cancel_work_sync (&rtlpriv->works.fill_h2c_cmd);/* Enable software */ SET_USB_STOP (rtlusb);rtl_usb_deinit (hw);
@@ -1026,6 +1027,16 @@ static bool rtl_usb_tx_chk_waitq_insert(struct ieee80211_hw *hw,return false; } +static void rtl_fill_h2c_cmd_work_callback (struct work_struct *work) +{ +struct rtl_works *rtlworks = + container_of(work, struct rtl_works, fill_h2c_cmd); +struct ieee80211_hw *hw = rtlworks->hw; +struct rtl_priv *rtlpriv =rtl_priv (hw); + + rtlpriv->cfg->ops->fill_h2c_cmd (hw,H2C_RA_MASK ,5 , rtlpriv->rate_mask); +} +static struct rtl_intf_ops rtl_usb_ops = { .adapter_start = rtl_usb_start, .adapter_stop = rtl_usb_stop,
@@ -1057,6 +1068,8 @@ int rtl_usb_probe(struct usb_interface *intf,/* this spin lock must be initialized early */ spin_lock_init (&rtlpriv->locks.usb_lock); +INIT_WORK (&rtlpriv->works.fill_h2c_cmd, + rtl_fill_h2c_cmd_work_callback); rtlpriv->usb_data_index =0 ;init_completion (&rtlpriv->firmware_loading_complete);
drivers/net/wireless/rtlwifi/wifi.h +4 -0
@@ -1736,6 +1736,8 @@ struct rtl_hal_ops {void (*bt_wifi_media_status_notify) (struct ieee80211_hw *hw,bool mstate);void (*bt_coex_off_before_lps) (struct ieee80211_hw *hw); +void (*fill_h2c_cmd) (struct ieee80211_hw *hw,u8 element_id, +u32 cmd_len,u8 *p_cmdbuffer); };struct rtl_intf_ops {
@@ -1869,6 +1871,7 @@ struct rtl_works {struct delayed_work fwevt_wq;struct work_struct lps_change_work; +struct work_struct fill_h2c_cmd; };struct rtl_debug {
@@ -2048,6 +2051,7 @@ struct rtl_priv { }; };bool enter_ps;/* true when entering PS */ +u8 rate_mask[5 ];/*This must be the last item so that it points to the data allocated
drivers/net/wireless/ti/wl12xx/scan.c +1 -1
@@ -310,7 +310,7 @@ static void wl12xx_adjust_channels(struct wl1271_cmd_sched_scan_config *cmd,memcpy (cmd->channels_2, cmd_channels->channels_2,sizeof (cmd->channels_2));memcpy (cmd->channels_5, cmd_channels->channels_5, -sizeof (cmd->channels_2)); +sizeof (cmd->channels_5));/* channels_4 are not supported, so no need to copy them */ }
drivers/net/wireless/ti/wl12xx/wl12xx.h +3 -3
@@ -36,12 +36,12 @@#define WL127X_IFTYPE_SR_VER 3#define WL127X_MAJOR_SR_VER 10#define WL127X_SUBTYPE_SR_VER WLCORE_FW_VER_IGNORE -#define WL127X_MINOR_SR_VER 115 +#define WL127X_MINOR_SR_VER 133/* minimum multi-role FW version for wl127x */ #define WL127X_IFTYPE_MR_VER 5#define WL127X_MAJOR_MR_VER 7#define WL127X_SUBTYPE_MR_VER WLCORE_FW_VER_IGNORE -#define WL127X_MINOR_MR_VER 115 +#define WL127X_MINOR_MR_VER 42/* FW chip version for wl128x */ #define WL128X_CHIP_VER 7
@@ -49,7 +49,7 @@#define WL128X_IFTYPE_SR_VER 3#define WL128X_MAJOR_SR_VER 10#define WL128X_SUBTYPE_SR_VER WLCORE_FW_VER_IGNORE -#define WL128X_MINOR_SR_VER 115 +#define WL128X_MINOR_SR_VER 133/* minimum multi-role FW version for wl128x */ #define WL128X_IFTYPE_MR_VER 5#define WL128X_MAJOR_MR_VER 7
drivers/net/wireless/ti/wl18xx/scan.c +1 -1
@@ -34,7 +34,7 @@ static void wl18xx_adjust_channels(struct wl18xx_cmd_scan_params *cmd,memcpy (cmd->channels_2, cmd_channels->channels_2,sizeof (cmd->channels_2));memcpy (cmd->channels_5, cmd_channels->channels_5, -sizeof (cmd->channels_2)); +sizeof (cmd->channels_5));/* channels_4 are not supported, so no need to copy them */ }
include/net/bluetooth/hci_core.h +1 -0
@@ -1117,6 +1117,7 @@ void hci_sock_dev_event(struct hci_dev *hdev, int event);int mgmt_control (struct sock *sk,struct msghdr *msg,size_t len);int mgmt_index_added (struct hci_dev *hdev);int mgmt_index_removed (struct hci_dev *hdev); +int mgmt_set_powered_failed (struct hci_dev *hdev,int err);int mgmt_powered (struct hci_dev *hdev,u8 powered);int mgmt_discoverable (struct hci_dev *hdev,u8 discoverable);int mgmt_connectable (struct hci_dev *hdev,u8 connectable);
include/net/bluetooth/mgmt.h +1 -0
@@ -42,6 +42,7 @@#define MGMT_STATUS_NOT_POWERED 0x0f#define MGMT_STATUS_CANCELLED 0x10#define MGMT_STATUS_INVALID_INDEX 0x11 +#define MGMT_STATUS_RFKILLED 0x12struct mgmt_hdr {__le16 opcode;
net/bluetooth/hci_core.c +5 -1
@@ -1555,11 +1555,15 @@ static const struct rfkill_ops hci_rfkill_ops = {static void hci_power_on (struct work_struct *work) { struct hci_dev *hdev = container_of(work, struct hci_dev, power_on); +int err;BT_DBG ("%s" , hdev->name); -if (hci_dev_open (hdev->id) <0 ) + err =hci_dev_open (hdev->id); +if (err <0 ) { +mgmt_set_powered_failed (hdev, err);return ; + }if (test_bit (HCI_AUTO_OFF , &hdev->dev_flags)) queue_delayed_work(hdev->req_workqueue, &hdev->power_off,
net/bluetooth/l2cap_core.c +52 -18
202 lines not on this page · raw message
net/bluetooth/mgmt.c +22 -1
@@ -2700,7 +2700,7 @@ static int start_discovery(struct sock *sk, struct hci_dev *hdev,break ;case DISCOV_TYPE_LE : -if (!lmp_host_le_capable (hdev)) { +if (!test_bit (HCI_LE_ENABLED , &hdev->dev_flags)) { err =cmd_status (sk, hdev->id,MGMT_OP_START_DISCOVERY ,MGMT_STATUS_NOT_SUPPORTED );mgmt_pending_remove (cmd);
@@ -3418,6 +3418,27 @@ new_settings:return err; } +int mgmt_set_powered_failed (struct hci_dev *hdev,int err) +{ +struct pending_cmd *cmd; +u8 status; + + cmd =mgmt_pending_find (MGMT_OP_SET_POWERED , hdev); +if (!cmd) +return -ENOENT ; + +if (err == -ERFKILL ) + status =MGMT_STATUS_RFKILLED ; +else + status =MGMT_STATUS_FAILED ; + + err =cmd_status (cmd->sk, hdev->id,MGMT_OP_SET_POWERED , status); + +mgmt_pending_remove (cmd); + +return err; +} +int mgmt_discoverable (struct hci_dev *hdev,u8 discoverable) {struct cmd_lookup match = {NULL , hdev };
net/bluetooth/smp.c +2 -2
@@ -770,7 +770,7 @@ int smp_conn_security(struct hci_conn *hcon, __u8 sec_level)BT_DBG ("conn %p hcon %p level 0x%2.2x" , conn, hcon, sec_level); -if (!lmp_host_le_capable (hcon->hdev)) +if (!test_bit (HCI_LE_ENABLED , &hcon->hdev->dev_flags))return 1 ;if (sec_level ==BT_SECURITY_LOW )
@@ -851,7 +851,7 @@ int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb)__u8 reason;int err =0 ; -if (!lmp_host_le_capable (conn->hcon->hdev)) { +if (!test_bit (HCI_LE_ENABLED , &conn->hcon->hdev->dev_flags)) { err = -ENOTSUPP ; reason =SMP_PAIRING_NOTSUPP ; goto done;
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready.
David Miller
maintainerRe: pull request: wireless 2013-06-12
From: "John W. Linville" <[email protected]>
Date: Wed, 12 Jun 2013 11:09:26 -0400
Quoted 7 lines
For now I have dropped the mac80211 tree from this request. We are developing a little backlog of fixes and I would like to avoid introducing any more uncertainty to this pull request for the 3.10 stream. All the other bits are the same as what was in the 2013-06-06 request, including the ath9k fixes intended to address the problems observed by Linus w/ his Pixel, and a CVE fix for a potential security issue in the b43 driver.
Pulled, thanks John.