wil6210: rename p2p_wdev_mutex to vif_mutex
authorLior David <liord@codeaurora.org>
Mon, 26 Feb 2018 18:12:16 +0000 (20:12 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Feb 2018 16:50:40 +0000 (18:50 +0200)
commit404bbb3cca3c269ef392017053a8d4cb83e0cc77
tree28f84c02c8bfc4272051957c79bad97c08188fa2
parent3ada9314b4ea06e656ebb8f5806ff97596a3d548
wil6210: rename p2p_wdev_mutex to vif_mutex

As more support is added for multiple VIFs, there is a need
to protect the wil6210_vif structure from access while it is
deleted (mainly from del_virtual_intf operation).
Instead of adding another mutex, use p2p_wdev_mutex and rename
it to vif_mutex to reflect the added role. Its existing roles
are similar so it extends nicely (for example it protects the
scan_request member which is also a member of wil6210_vif).

Signed-off-by: Lior David <liord@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/cfg80211.c
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/p2p.c
drivers/net/wireless/ath/wil6210/wil6210.h
drivers/net/wireless/ath/wil6210/wmi.c