1. 20 Feb, 2013 3 commits
    • Amerigo Wang's avatar
      net: fix a wrong assignment in skb_split() · 68534c68
      Amerigo Wang authored
      commit c9af6db4 (net: Fix possible wrong checksum generation)
      has a suspicous piece:
      
      	-       skb_shinfo(skb1)->gso_type = skb_shinfo(skb)->gso_type;
      	-
      	+       skb_shinfo(skb)->tx_flags = skb_shinfo(skb1)->tx_flags & SKBTX_SHARED_FRAG;
      
      skb1 is the new skb, therefore should be on the left side of the assignment.
      This patch fixes it.
      
      Cc: Pravin B Shelar <pshelar@nicira.com>
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarCong Wang <amwang@redhat.com>
      Acked-by: default avatarPravin B Shelar <pshelar@nicira.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      68534c68
    • David S. Miller's avatar
      Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next · c6b53807
      David S. Miller authored
      John W. Linville says:
      
      ====================
      One last batch of stragglers intended for 3.9...
      
      For the iwlwifi pull, Johannes says:
      
      "I hadn't expected to ask you to pull iwlwifi-next again, but I have a
      number of fixes most of which I'd also send in after rc1, so here it is.
      
      The first commit is a merge error between mac80211-next and
      iwlwifi-next; in addition I have fixes for P2P scanning and MVM driver
      MAC (virtual interface) management from Ilan, a CT-kill (critical
      temperature) fix from Eytan, and myself fixed three different little but
      annoying bugs in the MVM driver.
      
      The only ones I might not send for -rc1 are Emmanuel's debug patch, but
      OTOH it should help greatly if there are any issues, and my own time
      event debugging patch that I used to find the race condition but we
      decided to keep it for the future."
      
      For the mac80211 pull, Johannes says:
      
      "Like iwlwifi-next, this would almost be suitable for rc1.
      
      I have a fix for station management on non-TDLS drivers, a CAB queue
      crash fix for mesh, a fix for an annoying (but harmless) warning, a
      tracing fix and a documentation fix. Other than that, only a few mesh
      cleanups."
      
      Along with that is a fix for memory corruption in rtlwifi, an
      orinoco_usb fix to avoid allocating a DMA buffer on the stack, an a
      hostap fix to return -ENOMEM instead of -1 after a memory allocation
      failure.  The remaining bits implement 802.11ac support for the mwifiex
      driver -- I think that is still worth getting into 3.9.
      
      Please let me know if there are problems!
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c6b53807
    • Eric Dumazet's avatar
      ip_gre: remove an extra dst_release() · 4aa896c4
      Eric Dumazet authored
      commit 68c33163 (v4 GRE: Add TCP segmentation offload for GRE)
      introduced a bug in error path.
      
      dst is attached to skb, so will be released when skb is freed.
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Cc: Pravin B Shelar <pshelar@nicira.com>
      Acked-by: default avatarPravin B Shelar <pshelar@nicira.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4aa896c4
  2. 19 Feb, 2013 28 commits
  3. 18 Feb, 2013 9 commits
    • Kumar Amit Mehta's avatar
      net: wireless: hostap: hostap_ap.c: Return -ENOMEM instead of -1 for if kmalloc() fails. · b53cf458
      Kumar Amit Mehta authored
      When memory allocation using, kmalloc() fails, report appropriate error value.
      Signed-off-by: default avatarKumar Amit Mehta <gmate.amit@gmail.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      b53cf458
    • Kumar Amit Mehta's avatar
      net: wireless: orinoco: orinoco_usb.c: fix DMA buffers on stack · 488ec878
      Kumar Amit Mehta authored
      This patch fixes an instance of DMA buffer on stack(being passed to
      usb_control_msg) for the wireless USB version of the Agere Orinoco card driver.
      It also fixes the missing audit for the return value of firmware download
      routine. Found using smatch.
      Signed-off-by: default avatarKumar Amit Mehta <gmate.amit@gmail.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      488ec878
    • Jussi Kivilinna's avatar
      rtlwifi: usb: allocate URB control message setup_packet and data buffer separately · bc6b8923
      Jussi Kivilinna authored
      rtlwifi allocates both setup_packet and data buffer of control message urb,
      using shared kmalloc in _usbctrl_vendorreq_async_write. Structure used for
      allocating is:
      	struct {
      		u8 data[254];
      		struct usb_ctrlrequest dr;
      	};
      
      Because 'struct usb_ctrlrequest' is __packed, setup packet is unaligned and
      DMA mapping of both 'data' and 'dr' confuses ARM/sunxi, leading to memory
      corruptions and freezes.
      
      Patch changes setup packet to be allocated separately.
      
      [v2]:
       - Use WARN_ON_ONCE instead of WARN_ON
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      bc6b8923
    • Yogesh Ashok Powar's avatar
      mwifiex: add 802.11AC support · a5f39056
      Yogesh Ashok Powar authored
      For STA mode, collect VHT realated IEs from the Beacons or Probe
      Responses and append similar VHT related IEs to association
      requests.
      
      For AP mode, get VHT related capability information and share it
      with cfg80211 at the time of wiphy register. This information is
      further used by cfg80211 and hostapd to start an AP with 802.11AC
      support.
      
      Currently only 8897 supports 802.11AC.
      Signed-off-by: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
      Signed-off-by: default avatarAvinash Patil <patila@marvell.com>
      Signed-off-by: default avatarNishant Sarmukadam <nishants@marvell.com>
      Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
      Signed-off-by: default avatarFrank Huang <frankh@marvell.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      a5f39056
    • Yogesh Ashok Powar's avatar
      mwifiex: coding style cleanup in bss parameter update · 073c9e6f
      Yogesh Ashok Powar authored
      They all can make one line.
      Signed-off-by: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
      Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      073c9e6f
    • Avinash Patil's avatar
      mwifiex: fix empty TX ring check for PCIe8897 while unloading driver · 3d482038
      Avinash Patil authored
      While unloading driver, we free all pending TX packets by flushing
      TX ring. There is unhandled case for PCIE8897 while checking for
      ring empty condition.
      
      This patch adds the handling by calling mwifiex_pcie_txbd_empty().
      Signed-off-by: default avatarAvinash Patil <patila@marvell.com>
      Signed-off-by: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
      Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      3d482038
    • Eric Dumazet's avatar
      ipv6: fix a sparse warning · 8064b3cf
      Eric Dumazet authored
      net/ipv6/reassembly.c:82:72: warning: incorrect type in argument 3 (different base types)
      net/ipv6/reassembly.c:82:72:    expected unsigned int [unsigned] [usertype] c
      net/ipv6/reassembly.c:82:72:    got restricted __be32 [usertype] id
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8064b3cf
    • John W. Linville's avatar
    • David S. Miller's avatar
      Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next · 40d1ae57
      David S. Miller authored
      John W. Linville says:
      
      ====================
      This probably is the last big pull request for wireless bits
      for 3.9.  Of course, I'm sure there will be a few stragglers here
      and there...surely a few bug fixes as well... :-) (In fact, I see
      that Johannes has already queued-up a few more for me while I was
      preparing this...)
      
      Included are a number of pulls...
      
      For mac80211-next, Johannes says:
      
      "The biggest change I have is undoubtedly Marco's mesh powersave
      implementation. Beyond that, I have a patch from Emmanuel to modify the
      DTIM period API in mac80211, scan improvements and a removal of some
      previous workaround code from Stanislaw, dynamic short slot time from
      Thomas and 64-bit station byte counters from Vladimir. I also made a
      number of changes myself, some related to WoWLAN, some auth/deauth
      improvements and most of them BSS list cleanups."
      
      "This time, I have relatively large number of fixes in various areas of
      the code (a memory leak in regulatory, an RX race in mac80211, the new
      radar checking caused a P2P device problem, some mesh issues with
      stations, an older bug in tracing and for kernel-doc) as well as a
      number of small new features. The biggest (in the diffstat) is my work
      on hidden SSID tracking."
      
      "Please pull to get
       * radar detection work from Simon
       * mesh improvements from Thomas
       * a connection monitoring/powersave fix from Wojciech
       * TDLS-related station management work from Jouni
       * VLAN crypto fixes from Michael Braun
       * CCK support in minstrel_ht from Felix
       * an SMPS (not SMSP, oops) related improvement in mac80211 (Emmanuel)
       * some WoWLAN work from Amitkumar Karwar: pattern match offset and a
         documentation fix
       * some WoWLAN work from myself (TCP connection wakeup feature API)
       * and a lot of VHT (and some HT) work (also from myself)
      
      And a number of more random cleanups/fixes. I merged mac80211/master to
      avoid a merge problem there."
      
      And regarding iwlwifi-next, Johannes says:
      
      "We continue work on our new driver, but I also have a WoWLAN and AP mode
      improvement for the previous driver and a change to use threaded
      interrupts to prepare us for working with non-PCIe devices."
      
      Regarding wl12xx, Luca says:
      
      "A few more patches intended for 3.9.  Mostly some clean-ups I've been
      doing to make it easier to support device-tree.  Also including one bug
      fix for wl12xx where the rates we advertise were wrong and an update in
      the wlconf structure to support newer firmwares."
      
      For the nfc-next bits, Samuel says:
      
      "This is the second NFC pull request for 3.9.
      
      We have:
      
      - A few pn533 fixes on top of Waldemar refactorization of the driver, one of
        them fixes target mode.
      
      - A new driver for Inside Secure microread chipset. It supports two
        physical layers: i2c and MEI. The MEI one depends on a patchset that's
        been sent to Greg Kroah-Hartman for inclusion into the 3.9 kernel [1]. The
        dependency is a KConfig one which means this code is not buildable as long
        as the MEI API is not usptream."
      
      "This 3rd NFC pull request for 3.9 contains a fix for the microread MEI
      physical layer support, as the MEI bus API changed.
      
      From the MEI code, we now pass the MEI id back to the driver probe routine,
      and we also pass a name and a MEI id table through the mei_bus_driver
      structure. A few renames as well like e.g. mei_bus_driver to mei_driver or
      mei_bus_client to mei_device in order to be closer to the driver model
      practices."
      
      For the ath6kl bits, Kalle says:
      
      "There's not anything special here, most of the patches are just code
      cleanup. The only functional changes are using the beacon interval from user
      space and fixing a crash which happens when inserting and removing the
      module in a loop."
      
      Also, I pulled the wireless tree in order to resolve some pending
      merge issues.  On top of that, there is a bunch of work on brcmfmac
      that leads up to P2P support.  Also, mwifiex, rtlwifi, and a variety
      of other drivers see some basic cleanups and minor enhancements.
      
      Please let me know if there are problems!
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      40d1ae57