aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2023-10-25 22:29:35 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2023-11-29 16:36:11 +0000
commit8a7ba52ba201d9cc62a501feb8da6eb7f1710274 (patch)
tree23ef96480266b8ec543a17b8c61b771050449620
parent3cd4af3825b564a6bf249b0f8d2e5dd1368ca49a (diff)
downloadsrc-8a7ba52ba201d9cc62a501feb8da6eb7f1710274.tar.gz
src-8a7ba52ba201d9cc62a501feb8da6eb7f1710274.zip
LinuxKPI: 802.11: error on state transition failure
The state transition failures we were seeing in the early days are solved. If we now experience one stop processing before passing over to net80211 (sta_newstate()) and before updating iv_state on the vap. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42423 (cherry picked from commit 45c27ad5241f5491234afd0b47d13b8005fdb4de)
-rw-r--r--sys/compat/linuxkpi/common/src/linux_80211.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index da88a0e7c150..3f0058d639e1 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -2137,12 +2137,11 @@ lkpi_iv_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
}
if (error != 0) {
- /* XXX-BZ currently expected so ignore. */
ic_printf(vap->iv_ic, "%s: error %d during state transition "
"%d (%s) -> %d (%s)\n", __func__, error,
ostate, ieee80211_state_name[ostate],
nstate, ieee80211_state_name[nstate]);
- /* return (error); */
+ return (error);
}
#ifdef LINUXKPI_DEBUG_80211