diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2023-12-15 13:38:52 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-12-19 17:32:46 +0100 |
commit | 323e79d4387a89e546cf6b435e68e109a8f0e69e (patch) | |
tree | 17a91e0fa4c3a7e8b39ea858fcb1e0182ca8ba11 /drivers/net/wireless/marvell/mwifiex/scan.c | |
parent | wifi: cfg80211: introduce cfg80211_ssid_eq() (diff) | |
download | linux-323e79d4387a89e546cf6b435e68e109a8f0e69e.tar.xz linux-323e79d4387a89e546cf6b435e68e109a8f0e69e.zip |
wifi: mwifiex: use cfg80211_ssid_eq() instead of mwifiex_ssid_cmp()
Prefer generic 'cfg80211_ssid_eq()' over dropped 'mwifiex_ssid_cmp()'.
Compile tested only.
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Link: https://msgid.link/20231215123859.196350-2-dmantipov@yandex.ru
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/scan.c')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/scan.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c index 72904c275461..a2ddac363b10 100644 --- a/drivers/net/wireless/marvell/mwifiex/scan.c +++ b/drivers/net/wireless/marvell/mwifiex/scan.c @@ -180,17 +180,6 @@ mwifiex_is_wpa_oui_present(struct mwifiex_bssdescriptor *bss_desc, u32 cipher) } /* - * This function compares two SSIDs and checks if they match. - */ -s32 -mwifiex_ssid_cmp(struct cfg80211_ssid *ssid1, struct cfg80211_ssid *ssid2) -{ - if (!ssid1 || !ssid2 || (ssid1->ssid_len != ssid2->ssid_len)) - return -1; - return memcmp(ssid1->ssid, ssid2->ssid, ssid1->ssid_len); -} - -/* * This function checks if wapi is enabled in driver and scanned network is * compatible with it. */ |