1. 28 8月, 2010 5 次提交
  2. 27 8月, 2010 5 次提交
  3. 26 8月, 2010 11 次提交
  4. 25 8月, 2010 6 次提交
  5. 18 8月, 2010 1 次提交
  6. 17 8月, 2010 6 次提交
  7. 10 8月, 2010 1 次提交
    • J
      iwlagn: fix rts cts protection · 94597ab2
      Johannes Berg 提交于
      Currently the driver will try to protect all frames,
      which leads to a lot of odd things like sending an
      RTS with a zeroed RA before multicast frames, which
      is clearly bogus.
      
      In order to fix all of this, we need to take a step
      back and see what we need to achieve:
       * we need RTS/CTS protection if requested by
         the AP for the BSS, mac80211 tells us this
       * in that case, CTS-to-self should only be
         enabled when mac80211 tells us
       * additionally, as a hardware workaround, on
         some devices we have to protect aggregated
         frames with RTS
      
      To achieve the first two items, set up the RXON
      accordingly and set the protection required flag
      in the transmit command when mac80211 requests
      protection for the frame.
      
      To achieve the last item, set the rate-control
      RTS-requested flag for all stations that we have
      aggregation sessions with, and set the protection
      required flag when sending aggregated frames (on
      those devices where this is required).
      
      Since otherwise bugs can occur, do not allow the
      user to override the RTS-for-aggregation setting
      from sysfs any more.
      
      Finally, also clean up the way all these flags get
      set in the driver and move everything into the
      device-specific functions.
      
      Cc: stable@kernel.org [2.6.35]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      94597ab2
  8. 28 7月, 2010 1 次提交
  9. 23 7月, 2010 4 次提交
    • J
      iwlwifi: reduce beacon fill conditions · 6abbe554
      Johannes Berg 提交于
      Since the ibss_beacon variable will only be
      filled in the appropriate modes, there's no
      reason to be checking the mode again.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      6abbe554
    • W
      iwlwifi: read multiple MAC addresses · c6fa17ed
      Wey-Yi Guy 提交于
      Some devices may have multiple MAC
      addresses in their EEPROM, read them
      and advertise them to cfg80211.
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      c6fa17ed
    • J
      iwlagn: fix firmware loading TLV error path · 704da534
      Johannes Berg 提交于
      gcc complains about the firmware loading:
      
      iwl-agn.c: In function ‘iwlagn_load_firmware’:
      iwl-agn.c:1860: warning: ‘tlv_len’ may be used uninitialized in this function
      iwl-agn.c:1861: warning: ‘tlv_type’ may be used uninitialized in this function
      iwl-agn.c:1862: warning: ‘tlv_data’ may be used uninitialized in this function
      
      This is almost correct but we do do break out of the TLV
      parsing loop when setting ret. However, the code is hard
      to follow, and clearly even the compiler is having issues
      with it too.
      
      Additionally, however, the current code is wrong. If there
      is a TLV length check error, the code will report
      	invalid TLV after parsing: ...
      because "len" will still be non-zero as we broke out of
      the loop.
      
      So to remove the warning and fix that issue, make the code
      easier to read by doing length checking with an error label.
      As a result, we can completely remove the "ret" variable.
      
      Also, while at it, remove the "fixed_tlv_size" variable
      since each TLV type has its own specified length, it just
      happens that we have only variable length, flags (0 length)
      and u32 TLVs right now. It should still be checked with more
      explicit length checks to make it easier to understand.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      704da534
    • W
      iwlwifi: add TLV to specify the size of phy calibration table · 6a822d06
      Wey-Yi Guy 提交于
      Different devices have different size of phy calibration table; add
      new TLV to specify the size. If the TLV is not part of uCode header, the
      default table size will be used to make sure the backward
      compatibilities.
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      6a822d06