pull request: wireless 2013-11-14
Subsystems (5)
Dave,
Please pull this batch of fixes intended for the 3.13 stream!
Amitkumar Karwar offers a quartet of mwifiex fixes, including an endian fix and three fixes for invalid memory access.
Avinash Patil trims the packet length value for packets received from an SDIO interface.
Colin Ian King fixes a NULL pointer dereference in the rtlwifi efuse code.
Dan Carpenter cleans-up an mwifiex integer underflow, a potential libertas oops, a memory corrupion bug in wcn36xx, and a locking issue also in wcn36xx.
Dan Williams helps prism54 devices to avoid being misclassified as Ethernet devices.
Felipe Pena fixes a couple of typo errors, one in rt2x00 and the other in rtlwifi.
Janusz Dziedzic corrects a pair of DFS-related problems in ath9k.
Larry Finger patches three rtlwifi drivers to correctly report signal strength even for an unassociated AP.
Mark Cave-Ayland rewrites some endian-illiterate packet type extraction code in rtlwifi.
Stanislaw Gruszka addresses an rt2x00 regression related to setting HT station WCID and AMPDU density parameters.
Sujith Manoharan corrects the initvals settings for AR9485.
Ujjal Roy patches an obscure bit of code in mwifiex that was using the wrong definition of eth_hdr when briding patches in AP mode.
Wei Yongjun fixes a couple of bugs: one is a return code handling bug in libertas; and, the other is a locking issue in wcn36xx.
Please let me know if there are problems!
John
---
The following changes since commit 6115c11fe1a5a636ac99fc823b00df4ff3c0674e:
net: mv643xx_eth: potential NULL dereference in probe() (2013-11-14 03:11:36 -0500)
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 d8ec5a5d4c63e308beb20b09a05bb8ea3093bedb:
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem (2013-11-14 13:42:17 -0500)
----------------------------------------------------------------
Amitkumar Karwar (4):
mwifiex: replace u16 with __le16 in struct mwifiex_types_power_group
mwifiex: fix invalid memory access in mwifiex_get_power_level()
mwifiex: fix invalid memory access in mwifiex_ret_tx_rate_cfg()
mwifiex: fix invalid memory access in mwifiex_update_autoindex_ies()
Avinash Patil (1):
mwifiex: correct packet length for packets from SDIO interface
Colin Ian King (1):
rtlwifi: fix null dereference on efuse_word on kmalloc fail returns NULL
Dan Carpenter (4):
mwifiex: potential integer underflow in mwifiex_ret_wmm_get_status()
libertas: potential oops in debugfs
wcn36xx: harmless memory corruption bug in debugfs
wcn36xx: missing unlocks on error paths
Dan Williams (1):
prism54: set netdev type to "wlan"
Felipe Pena (2):
wireless: rt2800lib: Fix typo on checking
rtlwifi: rtl8192se: Fix wrong assignment
Janusz Dziedzic (2):
ath9k: DFS radar use correct width enum
ath9k: dfs_debug fix possible NULL dereference
John W. Linville (1):
Merge branch 'master' of git://git.kernel.org/.../linville/wireless into for-davem
Larry Finger (3):
rtlwifi: rtl8192se: Fix incorrect signal strength for unassociated AP
rtlwifi: rtl8192cu: Fix incorrect signal strength for unassociated AP
rtlwifi: rtl8192de: Fix incorrect signal strength for unassociated AP
Mark Cave-Ayland (1):
rtlwifi: Fix endian error in extracting packet type
Stanislaw Gruszka (1):
rt2x00: fix HT TX descriptor settings regression
Sujith Manoharan (1):
ath9k: Use correct PCIE initvals for AR9485
Ujjal Roy (1):
mwifiex: fix wrong eth_hdr usage for bridged packets in AP mode
Wei Yongjun (2):
libertas: fix error return code in if_cs_probe()
wcn36xx: Add missing unlock before return
drivers/net/wireless/ath/ath9k/ar9003_hw.c | 22 +++--- drivers/net/wireless/ath/ath9k/ar9485_initvals.h | 42 ++++------- drivers/net/wireless/ath/ath9k/ath9k.h | 19 ++--- drivers/net/wireless/ath/ath9k/dfs_debug.c | 13 +++- drivers/net/wireless/ath/ath9k/hw.h | 1 + drivers/net/wireless/ath/ath9k/init.c | 9 ++- drivers/net/wireless/ath/ath9k/pci.c | 87 ++++++++++++++++++++++ drivers/net/wireless/ath/wcn36xx/debug.c | 2 +- drivers/net/wireless/ath/wcn36xx/smd.c | 9 ++- drivers/net/wireless/libertas/debugfs.c | 6 +- drivers/net/wireless/libertas/if_cs.c | 1 + drivers/net/wireless/mwifiex/fw.h | 4 +- drivers/net/wireless/mwifiex/ie.c | 11 ++- drivers/net/wireless/mwifiex/sdio.c | 3 + drivers/net/wireless/mwifiex/sta_cmd.c | 4 +- drivers/net/wireless/mwifiex/sta_cmdresp.c | 46 ++++++------ drivers/net/wireless/mwifiex/sta_ioctl.c | 5 +- drivers/net/wireless/mwifiex/uap_txrx.c | 29 +++++++- drivers/net/wireless/mwifiex/wmm.c | 3 + drivers/net/wireless/prism54/islpci_dev.c | 7 +- drivers/net/wireless/rt2x00/rt2800lib.c | 2 +- drivers/net/wireless/rt2x00/rt2x00lib.h | 2 +- drivers/net/wireless/rt2x00/rt2x00mac.c | 4 +- drivers/net/wireless/rt2x00/rt2x00queue.c | 4 +- drivers/net/wireless/rtlwifi/base.c | 93 +++++++++++------------- drivers/net/wireless/rtlwifi/efuse.c | 5 +- drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | 2 +- drivers/net/wireless/rtlwifi/rtl8192de/trx.c | 2 +- drivers/net/wireless/rtlwifi/rtl8192se/rf.c | 2 +- drivers/net/wireless/rtlwifi/rtl8192se/trx.c | 2 +- drivers/net/wireless/rtlwifi/wifi.h | 6 +- 31 files changed, 284 insertions(+), 163 deletions(-)
drivers/net/wireless/ath/ath9k/ar9003_hw.c +11 -11
@@ -187,17 +187,17 @@ static void ar9003_hw_init_mode_regs(struct ath_hw *ah)INIT_INI_ARRAY (&ah->iniCckfirJapan2484, ar9485_1_1_baseband_core_txfir_coeff_japan_2484); -/* Load PCIE SERDES settings from INI */ - -/* Awake Setting */ - -INIT_INI_ARRAY (&ah->iniPcieSerdes, - ar9485_1_1_pcie_phy_clkreq_disable_L1); - -/* Sleep Setting */ - -INIT_INI_ARRAY (&ah->iniPcieSerdesLowPower, - ar9485_1_1_pcie_phy_clkreq_disable_L1); +if (ah->config.no_pll_pwrsave) { +INIT_INI_ARRAY (&ah->iniPcieSerdes, + ar9485_1_1_pcie_phy_clkreq_disable_L1); +INIT_INI_ARRAY (&ah->iniPcieSerdesLowPower, + ar9485_1_1_pcie_phy_clkreq_disable_L1); + }else { +INIT_INI_ARRAY (&ah->iniPcieSerdes, + ar9485_1_1_pll_on_cdr_on_clkreq_disable_L1); +INIT_INI_ARRAY (&ah->iniPcieSerdesLowPower, + ar9485_1_1_pll_on_cdr_on_clkreq_disable_L1); + } }else if (AR_SREV_9462_21 (ah)) {INIT_INI_ARRAY (&ah->iniMac[ATH_INI_CORE ], ar9462_2p1_mac_core);
drivers/net/wireless/ath/ath9k/ar9485_initvals.h +14 -28
64 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/ath9k.h +10 -9
@@ -632,15 +632,16 @@ void ath_ant_comb_scan(struct ath_softc *sc, struct ath_rx_status *rs);/* Main driver core */ /********************/ -#define ATH9K_PCI_CUS198 0x0001 -#define ATH9K_PCI_CUS230 0x0002 -#define ATH9K_PCI_CUS217 0x0004 -#define ATH9K_PCI_CUS252 0x0008 -#define ATH9K_PCI_WOW 0x0010 -#define ATH9K_PCI_BT_ANT_DIV 0x0020 -#define ATH9K_PCI_D3_L1_WAR 0x0040 -#define ATH9K_PCI_AR9565_1ANT 0x0080 -#define ATH9K_PCI_AR9565_2ANT 0x0100 +#define ATH9K_PCI_CUS198 0x0001 +#define ATH9K_PCI_CUS230 0x0002 +#define ATH9K_PCI_CUS217 0x0004 +#define ATH9K_PCI_CUS252 0x0008 +#define ATH9K_PCI_WOW 0x0010 +#define ATH9K_PCI_BT_ANT_DIV 0x0020 +#define ATH9K_PCI_D3_L1_WAR 0x0040 +#define ATH9K_PCI_AR9565_1ANT 0x0080 +#define ATH9K_PCI_AR9565_2ANT 0x0100 +#define ATH9K_PCI_NO_PLL_PWRSAVE 0x0200/* * Default cache line size, in bytes.
drivers/net/wireless/ath/ath9k/dfs_debug.c +10 -3
@@ -44,14 +44,20 @@ static ssize_t read_file_dfs(struct file *file, char __user *user_buf,if (buf ==NULL )return -ENOMEM ; -if (sc->dfs_detector) - dfs_pool_stats = sc->dfs_detector->get_stats (sc->dfs_detector); - len +=scnprintf (buf + len, size - len,"DFS support for " "macVersion = 0x%x, macRev = 0x%x: %s\n" , hw_ver->macVersion, hw_ver->macRev, (sc->sc_ah->caps.hw_caps &ATH9K_HW_CAP_DFS ) ?"enabled" :"disabled" ); + +if (!sc->dfs_detector) { + len +=scnprintf (buf + len, size - len, +"DFS detector not enabled\n" ); + goto exit; + } + + dfs_pool_stats = sc->dfs_detector->get_stats (sc->dfs_detector); + len +=scnprintf (buf + len, size - len,"Pulse detector statistics:\n" );ATH9K_DFS_STAT ("pulse events reported " , pulses_total);ATH9K_DFS_STAT ("invalid pulse events " , pulses_no_dfs);
@@ -76,6 +82,7 @@ static ssize_t read_file_dfs(struct file *file, char __user *user_buf,ATH9K_DFS_POOL_STAT ("Seqs. alloc error " , pseq_alloc_error);ATH9K_DFS_POOL_STAT ("Seqs. in use " , pseq_used); +exit:if (len > size) len = size;
drivers/net/wireless/ath/ath9k/hw.h +1 -0
@@ -316,6 +316,7 @@ struct ath9k_ops_config {u32 ant_ctrl_comm2g_switch_enable;bool xatten_margin_cfg;bool alt_mingainidx; +bool no_pll_pwrsave; };enum ath9k_int {
drivers/net/wireless/ath/ath9k/init.c +7 -2
@@ -609,6 +609,11 @@ static void ath9k_init_platform(struct ath_softc *sc) ah->config.pcie_waen =0x0040473b ;ath_info (common,"Enable WAR for ASPM D3/L1\n" ); } + +if (sc->driver_data &ATH9K_PCI_NO_PLL_PWRSAVE ) { + ah->config.no_pll_pwrsave = true; +ath_info (common,"Disable PLL PowerSave\n" ); + } } static void ath9k_eeprom_request_cb(const struct firmware *eeprom_blob,
@@ -863,8 +868,8 @@ static const struct ieee80211_iface_combination if_comb[] = { .max_interfaces = 1, .num_different_channels = 1, .beacon_int_infra_match = true, - .radar_detect_widths = BIT(NL80211_CHAN_NO_HT) | - BIT(NL80211_CHAN_HT20), + .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) | + BIT(NL80211_CHAN_WIDTH_20), } };
drivers/net/wireless/ath/ath9k/pci.c +87 -0
93 lines not on this page · raw message
drivers/net/wireless/ath/wcn36xx/debug.c +1 -1
@@ -126,7 +126,7 @@ static ssize_t write_file_dump(struct file *file,if (begin ==NULL )break ; -if (kstrtoul (begin,0 , (unsigned long *)(arg + i)) !=0 ) +if (kstrtou32 (begin,0 , &arg[i]) !=0 )break ; }
drivers/net/wireless/ath/wcn36xx/smd.c +6 -3
@@ -1286,7 +1286,8 @@ int wcn36xx_smd_send_beacon(struct wcn36xx *wcn, struct ieee80211_vif *vif, }else {wcn36xx_err ("Beacon is to big: beacon size=%d\n" , msg_body.beacon_length); -return -ENOMEM ; + ret = -ENOMEM ; + goto out; }memcpy (msg_body.bssid, vif->addr,ETH_ALEN );
@@ -1327,7 +1328,8 @@ int wcn36xx_smd_update_proberesp_tmpl(struct wcn36xx *wcn,if (skb->len >BEACON_TEMPLATE_SIZE ) {wcn36xx_warn ("probe response template is too big: %d\n" , skb->len); -return -E2BIG ; + ret = -E2BIG ; + goto out; } msg.probe_resp_template_len = skb->len;
@@ -1606,7 +1608,8 @@ int wcn36xx_smd_keep_alive_req(struct wcn36xx *wcn,/* TODO: it also support ARP response type */ }else {wcn36xx_warn ("unknow keep alive packet type %d\n" , packet_type); -return -EINVAL ; + ret = -EINVAL ; + goto out; }PREPARE_HAL_BUF (wcn->hal_buf, msg_body);
drivers/net/wireless/libertas/debugfs.c +5 -1
@@ -913,7 +913,10 @@ static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf,char *p2;struct debug_data *d = f->private_data; - pdata =kmalloc (cnt,GFP_KERNEL ); +if (cnt ==0 ) +return 0 ; + + pdata =kmalloc (cnt +1 ,GFP_KERNEL );if (pdata ==NULL )return 0 ;
@@ -922,6 +925,7 @@ static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf,kfree (pdata);return 0 ; } + pdata[cnt] ='\0' ; p0 = pdata;for (i =0 ; i < num_of_items; i++) {
drivers/net/wireless/libertas/if_cs.c +1 -0
@@ -902,6 +902,7 @@ static int if_cs_probe(struct pcmcia_device *p_dev)if (card->model ==MODEL_UNKNOWN ) {pr_err ("unsupported manf_id 0x%04x / card_id 0x%04x\n" , p_dev->manf_id, p_dev->card_id); + ret = -ENODEV ; goto out2; }
drivers/net/wireless/mwifiex/fw.h +2 -2
@@ -1020,8 +1020,8 @@ struct mwifiex_power_group { } __packed;struct mwifiex_types_power_group { -u16 type; -u16 length; +__le16 type; +__le16 length; } __packed;struct host_cmd_ds_txpwr_cfg {
drivers/net/wireless/mwifiex/ie.c +7 -4
@@ -82,7 +82,7 @@ mwifiex_update_autoindex_ies(struct mwifiex_private *priv, struct mwifiex_ie_list *ie_list) {u16 travel_len, index, mask; -s16 input_len; +s16 input_len, tlv_len;struct mwifiex_ie *ie;u8 *tmp;
@@ -91,11 +91,13 @@ mwifiex_update_autoindex_ies(struct mwifiex_private *priv, ie_list->len =0 ; -while (input_len >0 ) { +while (input_len >=sizeof (struct mwifiex_ie_types_header )) { ie = (struct mwifiex_ie *)(((u8 *)ie_list) + travel_len); - input_len -=le16_to_cpu (ie->ie_length) +MWIFIEX_IE_HDR_SIZE ; - travel_len +=le16_to_cpu (ie->ie_length) +MWIFIEX_IE_HDR_SIZE ; + tlv_len =le16_to_cpu (ie->ie_length); + travel_len += tlv_len +MWIFIEX_IE_HDR_SIZE ; +if (input_len < tlv_len +MWIFIEX_IE_HDR_SIZE ) +return -1 ; index =le16_to_cpu (ie->ie_index); mask =le16_to_cpu (ie->mgmt_subtype_mask);
@@ -132,6 +134,7 @@ mwifiex_update_autoindex_ies(struct mwifiex_private *priv,le16_add_cpu (&ie_list->len,le16_to_cpu (priv->mgmt_ie[index].ie_length) +MWIFIEX_IE_HDR_SIZE ); + input_len -= tlv_len +MWIFIEX_IE_HDR_SIZE ; }if (GET_BSS_ROLE (priv) ==MWIFIEX_BSS_ROLE_UAP )
drivers/net/wireless/mwifiex/sdio.c +3 -0
@@ -1029,7 +1029,10 @@ static int mwifiex_decode_rx_packet(struct mwifiex_adapter *adapter, struct sk_buff *skb, u32 upld_typ) {u8 *cmd_buf; +__le16 *curr_ptr = (__le16 *)skb->data; +u16 pkt_len =le16_to_cpu (*curr_ptr); +skb_trim (skb, pkt_len);skb_pull (skb,INTF_HEADER_LEN );switch (upld_typ) {
drivers/net/wireless/mwifiex/sta_cmd.c +2 -2
@@ -239,14 +239,14 @@ static int mwifiex_cmd_tx_power_cfg(struct host_cmd_ds_command *cmd,memmove (cmd_txp_cfg, txp,sizeof (struct host_cmd_ds_txpwr_cfg ) +sizeof (struct mwifiex_types_power_group ) + - pg_tlv->length); +le16_to_cpu (pg_tlv->length)); pg_tlv = (struct mwifiex_types_power_group *) ((u8 *) cmd_txp_cfg +sizeof (struct host_cmd_ds_txpwr_cfg )); cmd->size =cpu_to_le16 (le16_to_cpu (cmd->size) +sizeof (struct mwifiex_types_power_group ) + - pg_tlv->length); +le16_to_cpu (pg_tlv->length)); }else {memmove (cmd_txp_cfg, txp,sizeof (*txp)); }
drivers/net/wireless/mwifiex/sta_cmdresp.c +25 -21
74 lines not on this page · raw message
drivers/net/wireless/mwifiex/sta_ioctl.c +3 -2
@@ -638,8 +638,9 @@ int mwifiex_set_tx_power(struct mwifiex_private *priv, txp_cfg->mode =cpu_to_le32 (1 ); pg_tlv = (struct mwifiex_types_power_group *) (buf +sizeof (struct host_cmd_ds_txpwr_cfg )); - pg_tlv->type =TLV_TYPE_POWER_GROUP ; - pg_tlv->length =4 *sizeof (struct mwifiex_power_group ); + pg_tlv->type =cpu_to_le16 (TLV_TYPE_POWER_GROUP ); + pg_tlv->length = +cpu_to_le16 (4 *sizeof (struct mwifiex_power_group )); pg = (struct mwifiex_power_group *) (buf +sizeof (struct host_cmd_ds_txpwr_cfg ) +sizeof (struct mwifiex_types_power_group ));
drivers/net/wireless/mwifiex/uap_txrx.c +26 -3
@@ -97,6 +97,7 @@ static void mwifiex_uap_queue_bridged_pkt(struct mwifiex_private *priv,struct mwifiex_txinfo *tx_info;int hdr_chop;struct timeval tv; +struct ethhdr *p_ethhdr;u8 rfc1042_eth_hdr[ETH_ALEN ] = {0xaa ,0xaa ,0x03 ,0x00 ,0x00 ,0x00 }; uap_rx_pd = (struct uap_rxpd *)(skb->data);
@@ -112,14 +113,36 @@ static void mwifiex_uap_queue_bridged_pkt(struct mwifiex_private *priv, }if (!memcmp (&rx_pkt_hdr->rfc1042_hdr, - rfc1042_eth_hdr,sizeof (rfc1042_eth_hdr))) + rfc1042_eth_hdr,sizeof (rfc1042_eth_hdr))) { +/* Replace the 803 header and rfc1042 header (llc/snap) with +* an Ethernet II header, keep the src/dst and snap_type +* (ethertype). +* +* The firmware only passes up SNAP frames converting all RX +* data from 802.11 to 802.2/LLC/SNAP frames. +* +* To create the Ethernet II, just move the src, dst address +* right before the snap_type. +*/ + p_ethhdr = (struct ethhdr *) + ((u8 *)(&rx_pkt_hdr->eth803_hdr) + +sizeof (rx_pkt_hdr->eth803_hdr) + +sizeof (rx_pkt_hdr->rfc1042_hdr) + -sizeof (rx_pkt_hdr->eth803_hdr.h_dest) + -sizeof (rx_pkt_hdr->eth803_hdr.h_source) + -sizeof (rx_pkt_hdr->rfc1042_hdr.snap_type)); +memcpy (p_ethhdr->h_source, rx_pkt_hdr->eth803_hdr.h_source, +sizeof (p_ethhdr->h_source)); +memcpy (p_ethhdr->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, +sizeof (p_ethhdr->h_dest));/* Chop off the rxpd + the excess memory from * 802.2/llc/snap header that was removed. */ - hdr_chop = (u8 *)eth_hdr - (u8 *)uap_rx_pd; -else + hdr_chop = (u8 *)p_ethhdr - (u8 *)uap_rx_pd; + }else {/* Chop off the rxpd */ hdr_chop = (u8 *)&rx_pkt_hdr->eth803_hdr - (u8 *)uap_rx_pd; + }/* Chop off the leading header bytes so the it points * to the start of either the reconstructed EthII frame
drivers/net/wireless/mwifiex/wmm.c +3 -0
@@ -722,6 +722,9 @@ int mwifiex_ret_wmm_get_status(struct mwifiex_private *priv, tlv_hdr = (struct mwifiex_ie_types_data *) curr; tlv_len =le16_to_cpu (tlv_hdr->header.len); +if (resp_len < tlv_len +sizeof (tlv_hdr->header)) +break ; +switch (le16_to_cpu (tlv_hdr->header.type)) {case TLV_TYPE_WMMQSTATUS : tlv_wmm_qstatus =
drivers/net/wireless/prism54/islpci_dev.c +5 -2
@@ -811,6 +811,10 @@ static const struct net_device_ops islpci_netdev_ops = { .ndo_validate_addr = eth_validate_addr, }; +static struct device_type wlan_type = { + .name ="wlan" , +}; +struct net_device *islpci_setup (struct pci_dev *pdev) {
@@ -821,9 +825,8 @@ islpci_setup(struct pci_dev *pdev)return ndev;pci_set_drvdata (pdev, ndev); -#if defined(SET_NETDEV_DEV )SET_NETDEV_DEV (ndev, &pdev->dev); -#endif +SET_NETDEV_DEVTYPE (ndev, &wlan_type);/* setup the structure members */ ndev->base_addr =pci_resource_start (pdev,0 );
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
@@ -2640,7 +2640,7 @@ static void rt2800_config_channel_rf53xx(struct rt2x00_dev *rt2x00dev,if (rt2x00_rt (rt2x00dev,RT5392 )) {rt2800_rfcsr_read (rt2x00dev,50 , &rfcsr); -if (info->default_power1 >POWER_BOUND ) +if (info->default_power2 >POWER_BOUND )rt2x00_set_field8 (&rfcsr,RFCSR50_TX ,POWER_BOUND );else rt2x00_set_field8(&rfcsr, RFCSR50_TX,
drivers/net/wireless/rt2x00/rt2x00lib.h +1 -1
@@ -146,7 +146,7 @@ void rt2x00queue_remove_l2pad(struct sk_buff *skb, unsigned int header_length);* @local: frame is not from mac80211 */ int rt2x00queue_write_tx_frame (struct data_queue *queue,struct sk_buff *skb, -bool local); +struct ieee80211_sta *sta,bool local);/** * rt2x00queue_update_beacon - Send new beacon from mac80211
drivers/net/wireless/rt2x00/rt2x00mac.c +2 -2
@@ -90,7 +90,7 @@ static int rt2x00mac_tx_rts_cts(struct rt2x00_dev *rt2x00dev, frag_skb->data, data_length, tx_info, (struct ieee80211_rts *)(skb->data)); - retval =rt2x00queue_write_tx_frame (queue, skb, true); + retval =rt2x00queue_write_tx_frame (queue, skb,NULL , true);if (retval) {dev_kfree_skb_any (skb);rt2x00_warn (rt2x00dev,"Failed to send RTS/CTS frame\n" );
@@ -151,7 +151,7 @@ void rt2x00mac_tx(struct ieee80211_hw *hw, goto exit_fail; } -if (unlikely (rt2x00queue_write_tx_frame (queue, skb, false))) +if (unlikely (rt2x00queue_write_tx_frame (queue, skb, control->sta, false))) goto exit_fail;/*
drivers/net/wireless/rt2x00/rt2x00queue.c +2 -2
@@ -635,7 +635,7 @@ static void rt2x00queue_bar_check(struct queue_entry *entry) }int rt2x00queue_write_tx_frame (struct data_queue *queue,struct sk_buff *skb, -bool local) +struct ieee80211_sta *sta,bool local) {struct ieee80211_tx_info *tx_info;struct queue_entry *entry;
@@ -649,7 +649,7 @@ int rt2x00queue_write_tx_frame(struct data_queue *queue, struct sk_buff *skb,* after that we are free to use the skb->cb array * for our information. */ -rt2x00queue_create_tx_descriptor (queue->rt2x00dev, skb, &txdesc,NULL ); +rt2x00queue_create_tx_descriptor (queue->rt2x00dev, skb, &txdesc, sta);/* * All information is retrieved from the skb->cb array,
drivers/net/wireless/rtlwifi/base.c +41 -52
111 lines not on this page · raw message
drivers/net/wireless/rtlwifi/efuse.c +3 -2
@@ -262,9 +262,9 @@ void read_efuse(struct ieee80211_hw *hw, u16 _offset, u16 _size_byte, u8 *pbuf) sizeof(u8), GFP_ATOMIC);if (!efuse_tbl)return ; - efuse_word =kmalloc (EFUSE_MAX_WORD_UNIT *sizeof (u16 *),GFP_ATOMIC ); + efuse_word =kzalloc (EFUSE_MAX_WORD_UNIT *sizeof (u16 *),GFP_ATOMIC );if (!efuse_word) - goto done; + goto out;for (i =0 ; i <EFUSE_MAX_WORD_UNIT ; i++) { efuse_word[i] =kmalloc (efuse_max_section *sizeof (u16),GFP_ATOMIC );
@@ -378,6 +378,7 @@ done:for (i =0 ; i <EFUSE_MAX_WORD_UNIT ; i++)kfree (efuse_word[i]);kfree (efuse_word); +out:kfree (efuse_tbl); }
drivers/net/wireless/rtlwifi/rtl8192cu/trx.c +1 -1
@@ -349,7 +349,7 @@ bool rtl92cu_rx_query_desc(struct ieee80211_hw *hw, p_drvinfo); }/*rx_status->qual = stats->signal; */ - rx_status->signal = stats->rssi +10 ; + rx_status->signal = stats->recvsignalpower +10 ;return true; }
drivers/net/wireless/rtlwifi/rtl8192de/trx.c +1 -1
@@ -525,7 +525,7 @@ bool rtl92de_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats, p_drvinfo); }/*rx_status->qual = stats->signal; */ - rx_status->signal = stats->rssi +10 ; + rx_status->signal = stats->recvsignalpower +10 ;return true; }
drivers/net/wireless/rtlwifi/rtl8192se/rf.c +1 -1
@@ -265,7 +265,7 @@ static void _rtl92s_get_txpower_writeval_byregulatory(struct ieee80211_hw *hw, rtlefuse->pwrgroup_ht40 [RF90_PATH_A][chnl - 1]) { pwrdiff_limit[i] = - rtlefuse->pwrgroup_ht20 + rtlefuse->pwrgroup_ht40 [RF90_PATH_A ][chnl -1 ]; } }else {
drivers/net/wireless/rtlwifi/rtl8192se/trx.c +1 -1
@@ -329,7 +329,7 @@ bool rtl92se_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats, }/*rx_status->qual = stats->signal; */ - rx_status->signal = stats->rssi +10 ; + rx_status->signal = stats->recvsignalpower +10 ;return true; }
drivers/net/wireless/rtlwifi/wifi.h +1 -5
@@ -77,11 +77,7 @@#define RTL_SLOT_TIME_9 9#define RTL_SLOT_TIME_20 20 -/*related with tcp/ip. */ -/*if_ehther.h*/ -#define ETH_P_PAE 0x888E/*Port Access Entity (IEEE 802.1X) */ -#define ETH_P_IP 0x0800/*Internet Protocol packet */ -#define ETH_P_ARP 0x0806/*Address Resolution packet */ +/*related to tcp/ip. */ #define SNAP_SIZE 6#define PROTOC_TYPE_SIZE 2
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, 14 Nov 2013 14:11:20 -0500
Quoted 1 line
Please pull this batch of fixes intended for the 3.13 stream!
Pulled, thanks John.
--
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