]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mwifiex: cleanup struct mwifiex_auto_tdls_peer
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 27 Sep 2024 08:43:16 +0000 (11:43 +0300)
committerKalle Valo <kvalo@kernel.org>
Thu, 17 Oct 2024 16:48:28 +0000 (19:48 +0300)
Remove set but otherwise unused 'do_setup' member of
'struct mwifiex_auto_tdls_peer'. Compile tested only.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240927084317.96687-1-dmantipov@yandex.ru
drivers/net/wireless/marvell/mwifiex/main.h
drivers/net/wireless/marvell/mwifiex/tdls.c

index 366590236ed7eae5167d17c397990508edd81389..f993dd885d154dc32fc93fada2c678d33efc57fc 100644 (file)
@@ -801,7 +801,6 @@ struct mwifiex_auto_tdls_peer {
        unsigned long rssi_jiffies;
        u8 failure_count;
        u8 do_discover;
-       u8 do_setup;
 };
 
 #define MWIFIEX_TYPE_AGGR_DATA_V2 11
index 7823e67694e888b0999482ea19aaf104665d1063..0a5f340876c3b0f2fc0639a36d2b4f62924dc423 100644 (file)
@@ -1306,7 +1306,6 @@ int mwifiex_tdls_check_tx(struct mwifiex_private *priv, struct sk_buff *skb)
                                                           peer->mac_addr,
                                                           NL80211_TDLS_SETUP,
                                                           0, GFP_ATOMIC);
-                               peer->do_setup = false;
                                priv->check_tdls_tx = false;
                        } else if (peer->failure_count <
                                   MWIFIEX_TDLS_MAX_FAIL_COUNT &&
@@ -1465,7 +1464,6 @@ void mwifiex_check_auto_tdls(struct timer_list *t)
                           tdls_peer->failure_count <
                           MWIFIEX_TDLS_MAX_FAIL_COUNT) {
                                priv->check_tdls_tx = true;
-                               tdls_peer->do_setup = true;
                                mwifiex_dbg(priv->adapter, INFO,
                                            "check TDLS with peer=%pM\t"
                                            "rssi=%d\n", tdls_peer->mac_addr,