git: a7195567fdad - main - iwm: rename iwm_stop_session_protection() -> iwm_unprotect_session()

From: Adrian Chadd <adrian_at_FreeBSD.org>
Date: Fri, 16 Oct 2026 04:17:03 UTC
The branch main has been updated by adrian:

URL: https://cgit.FreeBSD.org/src/commit/?id=a7195567fdadb929cfddd190a9666a75ed7652d4

commit a7195567fdadb929cfddd190a9666a75ed7652d4
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2026-10-16 04:16:32 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2026-10-16 04:16:54 +0000

    iwm: rename iwm_stop_session_protection() -> iwm_unprotect_session()
    
    This matches OpenBSD's driver naming.
    
    Obtained from: OpenBSD a6e25c727a2214219715b51ba6af2221d7e0d674
    
    Reviewed by:    mizhka
    Differential Revision:  https://reviews.freebsd.org/D60287
---
 sys/dev/iwm/if_iwm.c            | 2 +-
 sys/dev/iwm/if_iwm_time_event.c | 2 +-
 sys/dev/iwm/if_iwm_time_event.h | 3 +--
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c
index 5d911475b6e1..083c316e118e 100644
--- a/sys/dev/iwm/if_iwm.c
+++ b/sys/dev/iwm/if_iwm.c
@@ -4764,7 +4764,7 @@ iwm_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
 	    (nstate == IEEE80211_S_INIT ||
 	     nstate == IEEE80211_S_SCAN ||
 	     nstate == IEEE80211_S_AUTH)) {
-		iwm_stop_session_protection(sc, ivp);
+		iwm_unprotect_session(sc, ivp);
 	}
 
 	if ((vap->iv_state == IEEE80211_S_RUN ||
diff --git a/sys/dev/iwm/if_iwm_time_event.c b/sys/dev/iwm/if_iwm_time_event.c
index df149bad13bd..9cc708233cb9 100644
--- a/sys/dev/iwm/if_iwm_time_event.c
+++ b/sys/dev/iwm/if_iwm_time_event.c
@@ -406,7 +406,7 @@ iwm_protect_session(struct iwm_softc *sc, struct iwm_vap *ivp,
 }
 
 void
-iwm_stop_session_protection(struct iwm_softc *sc, struct iwm_vap *ivp)
+iwm_unprotect_session(struct iwm_softc *sc, struct iwm_vap *ivp)
 {
 	struct iwm_time_event_cmd time_cmd = {};
 
diff --git a/sys/dev/iwm/if_iwm_time_event.h b/sys/dev/iwm/if_iwm_time_event.h
index 6b28a03f2600..f48fad6bd8af 100644
--- a/sys/dev/iwm/if_iwm_time_event.h
+++ b/sys/dev/iwm/if_iwm_time_event.h
@@ -110,7 +110,6 @@ extern	void iwm_rx_time_event_notif(struct iwm_softc *sc,
 	    struct iwm_rx_packet *pkt);
 extern	void iwm_protect_session(struct iwm_softc *sc, struct iwm_vap *ivp,
 	    uint32_t duration, uint32_t max_delay, boolean_t wait_for_notif);
-extern	void iwm_stop_session_protection(struct iwm_softc *sc,
-	    struct iwm_vap *ivp);
+extern	void iwm_unprotect_session(struct iwm_softc *sc, struct iwm_vap *ivp);
 
 #endif	/* __IF_IWM_TIME_EVENT_H__ */