1. 16 2月, 2018 2 次提交
    • S
      iwlwifi: mvm: fix IBSS for devices that support station type API · fc07bd8c
      Sara Sharon 提交于
      In IBSS, the mac80211 sets the cab_queue to be invalid.
      
      However, the multicast station uses it, so we need to override it.
      
      A previous patch did it, but it was nested inside the if's and was
      applied only for legacy FWs that don't support the new station type
      API, instead of being applied for all paths.
      
      In addition, add a missing NL80211_IFTYPE_ADHOC to the initialization
      of the queues in iwl_mvm_mac_ctxt_init()
      
      Fixes: ee48b722 ("iwlwifi: mvm: support ibss in dqa mode")
      Signed-off-by: NSara Sharon <sara.sharon@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      fc07bd8c
    • S
      iwlwifi: mvm: fix security bug in PN checking · 5ab2ba93
      Sara Sharon 提交于
      A previous patch allowed the same PN for packets originating from the
      same AMSDU by copying PN only for the last packet in the series.
      
      This however is bogus since we cannot assume the last frame will be
      received on the same queue, and if it is received on a different ueue
      we will end up not incrementing the PN and possibly let the next
      packet to have the same PN and pass through.
      
      Change the logic instead to driver explicitly indicate for the second
      sub frame and on to be allowed to have the same PN as the first
      subframe. Indicate it to mac80211 as well for the fallback queue.
      
      Fixes: f1ae02b1 ("iwlwifi: mvm: allow same PN for de-aggregated AMSDU")
      Signed-off-by: NSara Sharon <sara.sharon@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      5ab2ba93
  2. 12 2月, 2018 2 次提交
    • M
      mvpp2: fix multicast address filter · 7ac8ff95
      Mikulas Patocka 提交于
      IPv6 doesn't work on the MacchiatoBIN board. It is caused by broken
      multicast address filter in the mvpp2 driver.
      
      The driver loads doesn't load any multicast entries if "allmulti" is not
      set. This condition should be reversed.
      
      The condition !netdev_mc_empty(dev) is useless (because
      netdev_for_each_mc_addr is nop if the list is empty).
      
      This patch also fixes a possible overflow of the multicast list - if
      mvpp2_prs_mac_da_accept fails, we set the allmulti flag and retry.
      Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7ac8ff95
    • L
      vfs: do bulk POLL* -> EPOLL* replacement · a9a08845
      Linus Torvalds 提交于
      This is the mindless scripted replacement of kernel use of POLL*
      variables as described by Al, done by this script:
      
          for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do
              L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'`
              for f in $L; do sed -i "-es/^\([^\"]*\)\(\<POLL$V\>\)/\\1E\\2/" $f; done
          done
      
      with de-mangling cleanups yet to come.
      
      NOTE! On almost all architectures, the EPOLL* constants have the same
      values as the POLL* constants do.  But they keyword here is "almost".
      For various bad reasons they aren't the same, and epoll() doesn't
      actually work quite correctly in some cases due to this on Sparc et al.
      
      The next patch from Al will sort out the final differences, and we
      should be all done.
      Scripted-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a9a08845
  3. 10 2月, 2018 5 次提交
  4. 09 2月, 2018 4 次提交
  5. 08 2月, 2018 13 次提交
  6. 07 2月, 2018 11 次提交
  7. 06 2月, 2018 3 次提交