lkml.org 
[lkml]   [2021]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 012/175] ath: Export ath_hw_keysetmac()
    Date
    From: Jouni Malinen <jouni@codeaurora.org>

    commit d2d3e36498dd8e0c83ea99861fac5cf9e8671226 upstream.

    ath9k is going to use this for safer management of key cache entries.

    Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/20201214172118.18100-4-jouni@codeaurora.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/wireless/ath/ath.h | 1 +
    drivers/net/wireless/ath/key.c | 4 ++--
    2 files changed, 3 insertions(+), 2 deletions(-)

    --- a/drivers/net/wireless/ath/ath.h
    +++ b/drivers/net/wireless/ath/ath.h
    @@ -205,6 +205,7 @@ int ath_key_config(struct ath_common *co
    struct ieee80211_sta *sta,
    struct ieee80211_key_conf *key);
    bool ath_hw_keyreset(struct ath_common *common, u16 entry);
    +bool ath_hw_keysetmac(struct ath_common *common, u16 entry, const u8 *mac);
    void ath_hw_cycle_counters_update(struct ath_common *common);
    int32_t ath_hw_get_listen_time(struct ath_common *common);

    --- a/drivers/net/wireless/ath/key.c
    +++ b/drivers/net/wireless/ath/key.c
    @@ -84,8 +84,7 @@ bool ath_hw_keyreset(struct ath_common *
    }
    EXPORT_SYMBOL(ath_hw_keyreset);

    -static bool ath_hw_keysetmac(struct ath_common *common,
    - u16 entry, const u8 *mac)
    +bool ath_hw_keysetmac(struct ath_common *common, u16 entry, const u8 *mac)
    {
    u32 macHi, macLo;
    u32 unicast_flag = AR_KEYTABLE_VALID;
    @@ -125,6 +124,7 @@ static bool ath_hw_keysetmac(struct ath_

    return true;
    }
    +EXPORT_SYMBOL(ath_hw_keysetmac);

    static bool ath_hw_set_keycache_entry(struct ath_common *common, u16 entry,
    const struct ath_keyval *k,

    \
     
     \ /
      Last update: 2021-09-20 18:56    [W:3.098 / U:0.196 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site