26 Jun, 2012

1 commit

  • commit 7a532fe7131216a02c81a6c1b1f8632da1195a58
    ath9k_hw: fix interpretation of the rx KeyMiss flag

    This commit used the rx key miss indication to detect packets that were
    passed from the hardware without being decrypted, however it seems that
    this bit is not only undefined in the static WEP case, but also for
    dynamically allocated WEP keys. This caused a regression when using
    WEP-LEAP.

    This patch fixes the regression by keeping track of which key indexes
    refer to CCMP keys and only using the key miss indication for those.

    Reported-by: Stanislaw Gruszka
    Signed-off-by: Felix Fietkau
    Cc: stable@vger.kernel.org
    Signed-off-by: John W. Linville

    Felix Fietkau
     

20 Dec, 2011

1 commit

  • Add ATH_DBG_ to macros to shorten the uses and
    reduce the line count.

    Coalesce ath_dbg formats.
    Add missing spaces to coalesced formats.
    Add missing newline terminations to ath_dbg formats.
    Align ath_dbg arguments where appropriate.
    Standardize ath_dbg formats without periods.

    Signed-off-by: Joe Perches
    Signed-off-by: John W. Linville

    Joe Perches
     

01 Nov, 2011

1 commit

  • These were getting the macros from an implicit module.h
    include via device.h, but we are planning to clean that up.

    Signed-off-by: Paul Gortmaker

    drivers/net: Add export.h to wireless/brcm80211/brcmfmac/bcmsdh.c

    This relatively recently added file uses EXPORT_SYMBOL and hence
    needs export.h included so that it is compatible with the module.h
    split up work.

    Signed-off-by: Paul Gortmaker

    Paul Gortmaker
     

19 Jul, 2011

1 commit


20 Apr, 2011

1 commit

  • Frame filtering relies on having a valid destination index (keycache slot),
    to keep track of the destination. Assigning a keycache slot (configured
    to unencrypted, with no key data attached) improves powersave handling in
    AP mode with no encryption.
    The dummy keycache entry for a station is cleared, when a real key gets
    added.

    Signed-off-by: Felix Fietkau
    Signed-off-by: John W. Linville

    Felix Fietkau
     

31 Mar, 2011

1 commit


05 Feb, 2011

1 commit

  • All register writes to the key cache have to be done in pairs. However,
    the clearing of a separate MIC entry with hardware revisions that use
    combined MIC key layout did not do that with one of the registers. Add
    the matching register write to the following register to make the KEY4
    register write actually complete.

    This is mostly a fix for a theoretical issue since the incorrect entry
    that could potentially be left behind in the key cache would not match
    with received frames. Anyway, better make this code clean the entry
    correctly using paired register writes.

    Signed-off-by: Jouni Malinen
    Signed-off-by: John W. Linville

    Jouni Malinen
     

14 Dec, 2010

1 commit


08 Dec, 2010

2 commits


16 Nov, 2010

2 commits


17 Sep, 2010

2 commits

  • Replace common->splitmic with ATH_CRYPT_CAP_MIC_COMBINED flag.

    splitmic has to be used when the ATH_CRYPT_CAP_MIC_COMBINED capability flag is
    not set.

    Signed-off-by: Bruno Randolf
    Acked-by: Bob Copeland
    Signed-off-by: John W. Linville

    Bruno Randolf
     
  • Copied the key cache management functions from ath9k (common.c and hw.c) to
    ath/key.c so we can use them from ath5k, later.

    Minor changes have been made:
    - renamed ath9k_* to ath_*
    - replaced ah->caps.keycache_size with common->keymax
    - removed ATH9K_IS_MIC_ENABLED since it is always true.
    - the AR_PCU_MIC_NEW_LOC_ENA flag is replaced with (splitmic == 0).

    Signed-off-by: Bruno Randolf
    Signed-off-by: John W. Linville

    Bruno Randolf