1. 06 Nov, 2017 12 commits
  2. 03 Nov, 2017 26 commits
  3. 02 Nov, 2017 2 commits
    • Hans de Goede's avatar
      staging: rtl8188eu: Revert 4 commits breaking ARP · 66d32fdc
      Hans de Goede authored
      Commit 2ba8444c ("staging:r8188eu: move IV/ICV trimming into
      decrypt() and also place it after rtl88eu_mon_recv_hook()") breaks ARP.
      
      After this commit ssh-ing to a laptop with r8188eu wifi no longer works
      if the machine connecting has never communicated with the laptop before.
      This is 100% reproducable using "arp -d <ipv4> && ssh <ipv4>" to ssh to
      a laptop with r8188eu wifi.
      
      This commit reverts 4 commits in total:
      
      1. Commit 79650ffd ("staging:r8188eu: trim IV/ICV fields in
         validate_recv_data_frame()")
      This commit depends on 2 of the other commits being reverted.
      
      2. Commit 02b19b4c ("staging:r8188eu: inline unprotect_frame() in
         mon_recv_decrypted_recv()")
      The inline code is wrong the un-inlined version contains:
      	if (skb->len < hdr_len + iv_len + icv_len)
      		return;
      	...
      Where as the inline-ed code introduced by this commit does:
      	if (skb->len < hdr_len + iv_len + icv_len) {
      		...
      Note the same check, but now to actually continue doing ... instead
      of to not do it, so this commit is no good.
      
      3. Commit d86e16da ("staging:r8188eu: use different mon_recv_decrypted()
         inside rtl88eu_mon_recv_hook() and rtl88eu_mon_xmit_hook().")
      This commit introduced a 1:1 copy of a function so that one of the
      2 copies can be modified in the 2 commits we're already reverting.
      
      4. Commit 2ba8444c ("staging:r8188eu: move IV/ICV trimming into
         decrypt() and also place it after rtl88eu_mon_recv_hook()")
      This is the commit actually breaking ARP.
      
      Note this commit is a straight-forward squash of the revert of these
      4 commits, without any changes.
      
      Cc: stable@vger.kernel.org
      Cc: Ivan Safonov <insafonov@gmail.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      66d32fdc
    • Hans de Goede's avatar
      staging: rtl8188eu: Fix bug introduced by convert timers to use timer_setup() · d96e8c10
      Hans de Goede authored
      Commit b7749656 ("staging: rtl8188eu: Convert timers to use
      timer_setup()") introduces a copy and paste error which causes the
      rtl8188eu driver to no longer function. This commit fixes this.
      
      Fixes: b7749656 ("staging: rtl8188eu: Convert timers to use timer_setup()")
      Cc: Kees Cook <keescook@chromium.org>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d96e8c10