On Wed, May 27, 2020 at 09:31:00AM +0200, Stefan Sperling wrote:
> > Uptime of 3h37m with following two entries (from dmesg):
>
> So this uptime is a lot better than what you saw before?
I actually cannot compare is it better or not. This PC Engines machine
runs -current and I upgrade it very regularly. Uptime below a week is
normnal. Uptime of 30+ days would be probably because I'm traveling and
I don't want to do remote upgrades. With COVID-19 I'm not really
traveling these days, so no long uptimes for that box.
Today that machine has 21h37m of uptime and I was not able to trigger
kernel panic again :/ I used multiple WiFi clients and only unusual
thing which I triggered was athn device timeouts. To clarify, pce-0041
machine is the one which had kernel panic and it acts as an access
point.
2020-05-26T20:03:09.036Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.036Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.082Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.083Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.083Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.083Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.132Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.133Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.282Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.284Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.285Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.285Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.333Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.333Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.333Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.333Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.334Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.382Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.383Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.532Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.535Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:09.535Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:10.533Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:11.933Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:13.383Z pce-0041 /bsd: 38:37:8b:ab:89:3c: mira sfer > 1
2020-05-26T20:03:24.301Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:03:24.303Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:03:24.303Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:03:24.304Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:03:24.304Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:03:24.304Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:03:24.304Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:03:37.292Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:03:37.298Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:03:37.298Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:03:37.298Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:03:37.298Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:03:37.298Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:03:37.298Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:04:30.298Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:04:30.298Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:04:30.299Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:04:30.299Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:04:30.299Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:04:30.299Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:04:30.299Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:05:37.306Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:05:37.311Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:05:37.311Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:05:37.311Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:05:37.312Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:05:37.312Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:05:37.312Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:06:19.310Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:06:19.315Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:06:19.315Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:06:19.316Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:06:19.316Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:06:19.316Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:06:19.316Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:06:25.311Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:06:25.316Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:06:25.316Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:06:25.316Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:06:25.317Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:06:25.317Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:06:25.317Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:08:04.884Z pce-0041 /bsd: athn0: sending auth to
c0:ee:fb:33:f0:11 on channel 13 mode 11n
2020-05-26T20:08:04.886Z pce-0041 /bsd: athn0: station c0:ee:fb:33:f0:11
already authenticated (open)
2020-05-26T20:08:04.886Z pce-0041 /bsd: athn0: sending assoc_resp to
c0:ee:fb:33:f0:11 on channel 13 mode 11n
2020-05-26T20:08:04.887Z pce-0041 /bsd: athn0: sending msg 1/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:08:04.981Z pce-0041 /bsd: athn0: sending msg 1/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:08:05.081Z pce-0041 /bsd: athn0: sending msg 1/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:08:05.124Z pce-0041 /bsd: athn0: received msg 2/4 of the 4-way
handshake from c0:ee:fb:33:f0:11
2020-05-26T20:08:05.125Z pce-0041 /bsd: athn0: sending msg 3/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:08:05.125Z pce-0041 /bsd: athn0: received msg 4/4 of the 4-way
handshake from c0:ee:fb:33:f0:11
2020-05-26T20:08:07.225Z pce-0041 /bsd: athn0: sending action to
c0:ee:fb:33:f0:11 on channel 13 mode 11n
2020-05-26T20:08:18.323Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:08:18.327Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:08:18.328Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:08:18.328Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:08:18.328Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:08:18.328Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:08:18.328Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:08:36.325Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:08:36.330Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:08:36.330Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:08:36.330Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:08:36.331Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:08:36.331Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:08:36.331Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:09:02.124Z pce-0041 /bsd: athn0: sending auth to
c0:ee:fb:33:f0:11 on channel 13 mode 11n
2020-05-26T20:09:02.128Z pce-0041 /bsd: athn0: station c0:ee:fb:33:f0:11
already authenticated (open)
2020-05-26T20:09:02.129Z pce-0041 /bsd: athn0: sending assoc_resp to
c0:ee:fb:33:f0:11 on channel 13 mode 11n
2020-05-26T20:09:02.129Z pce-0041 /bsd: athn0: sending msg 1/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:09:02.220Z pce-0041 /bsd: athn0: received msg 2/4 of the 4-way
handshake from c0:ee:fb:33:f0:11
2020-05-26T20:09:02.222Z pce-0041 /bsd: athn0: sending msg 3/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:09:02.320Z pce-0041 /bsd: athn0: sending msg 3/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:09:02.420Z pce-0041 /bsd: athn0: sending msg 3/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:09:02.520Z pce-0041 /bsd: athn0: station c0:ee:fb:33:f0:11
deauthenticate (reason 15)
2020-05-26T20:09:02.522Z pce-0041 /bsd: athn0: sending deauth to
c0:ee:fb:33:f0:11 on channel 13 mode 11n
2020-05-26T20:09:22.329Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:09:22.335Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:09:22.335Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:09:22.336Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:09:22.336Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:09:22.336Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:09:22.337Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:09:54.332Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:09:54.338Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:09:54.338Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:09:54.338Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:09:54.339Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:09:54.339Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:09:54.339Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:11:11.339Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:11:11.340Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:11:11.340Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:11:11.340Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:11:11.341Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:11:11.341Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:11:11.341Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:12:01.344Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:12:01.349Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:12:01.349Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:12:01.350Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:12:01.350Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:12:01.350Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:12:01.350Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:12:12.345Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:12:12.346Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:12:12.346Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:12:12.347Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:12:12.347Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:12:12.347Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:12:12.348Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:12:18.346Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:12:18.351Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:12:18.351Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:12:18.351Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:12:18.351Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:12:18.352Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:12:18.352Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:12:25.339Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:12:25.343Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:12:25.344Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:12:25.344Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:12:25.344Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:12:25.344Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:12:25.344Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:13:00.349Z pce-0041 /bsd: athn0: device timeout
2020-05-26T20:13:00.354Z pce-0041 /bsd: athn0: RUN -> INIT
2020-05-26T20:13:00.354Z pce-0041 /bsd: athn0: INIT -> SCAN
2020-05-26T20:13:00.355Z pce-0041 /bsd: athn0: creating ibss
2020-05-26T20:13:00.355Z pce-0041 /bsd: athn0: SCAN -> RUN
2020-05-26T20:13:00.355Z pce-0041 /bsd: athn0: synchronized with
04:f0:21:34:e4:23 ssid "net_092382" channel 13 start 1Mb short preamble short
slot time
2020-05-26T20:13:00.356Z pce-0041 /bsd: athn0: missed beacon threshold set to
30 beacons, beacon interval is 100 TU
2020-05-26T20:13:07.253Z pce-0041 /bsd: athn0: sending auth to
38:37:8b:ab:89:3c on channel 13 mode 11n
2020-05-26T20:13:07.261Z pce-0041 /bsd: athn0: station 38:37:8b:ab:89:3c
already authenticated (open)
2020-05-26T20:13:07.262Z pce-0041 /bsd: athn0: sending assoc_resp to
38:37:8b:ab:89:3c on channel 13 mode 11n
2020-05-26T20:13:07.262Z pce-0041 /bsd: athn0: sending msg 1/4 of the 4-way
handshake to 38:37:8b:ab:89:3c
2020-05-26T20:13:07.262Z pce-0041 /bsd: athn0: received msg 2/4 of the 4-way
handshake from 38:37:8b:ab:89:3c
2020-05-26T20:13:07.262Z pce-0041 /bsd: athn0: sending msg 3/4 of the 4-way
handshake to 38:37:8b:ab:89:3c
2020-05-26T20:13:07.263Z pce-0041 /bsd: athn0: received msg 4/4 of the 4-way
handshake from 38:37:8b:ab:89:3c
2020-05-26T20:13:41.306Z pce-0041 /bsd: athn0: sending auth to
c0:ee:fb:33:f0:11 on channel 13 mode 11n
2020-05-26T20:13:41.306Z pce-0041 /bsd: athn0: station c0:ee:fb:33:f0:11
already authenticated (open)
2020-05-26T20:13:41.356Z pce-0041 /bsd: athn0: sending assoc_resp to
c0:ee:fb:33:f0:11 on channel 13 mode 11n
2020-05-26T20:13:41.356Z pce-0041 /bsd: athn0: sending msg 1/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:13:41.406Z pce-0041 /bsd: athn0: received msg 2/4 of the 4-way
handshake from c0:ee:fb:33:f0:11
2020-05-26T20:13:41.406Z pce-0041 /bsd: athn0: sending msg 3/4 of the 4-way
handshake to c0:ee:fb:33:f0:11
2020-05-26T20:13:41.406Z pce-0041 /bsd: athn0: received msg 4/4 of the 4-way
handshake from c0:ee:fb:33:f0:11
2020-05-26T20:13:43.356Z pce-0041 /bsd: athn0: sending action to
c0:ee:fb:33:f0:11 on channel 13 mode 11n
2020-05-26T20:13:44.856Z pce-0041 /bsd: c0:ee:fb:33:f0:11: mira sfer > 1
2020-05-26T20:13:45.056Z pce-0041 /bsd: c0:ee:fb:33:f0:11: mira sfer > 1
2020-05-26T20:14:14.259Z pce-0041 /bsd: c0:ee:fb:33:f0:11: mira sfer > 1
2020-05-26T20:14:14.263Z pce-0041 /bsd: c0:ee:fb:33:f0:11: mira sfer > 1
2020-05-26T20:14:14.309Z pce-0041 /bsd: c0:ee:fb:33:f0:11: mira sfer > 1
2020-05-26T20:14:14.309Z pce-0041 /bsd: c0:ee:fb:33:f0:11: mira sfer > 1
2020-05-26T20:14:14.310Z pce-0041 /bsd: c0:ee:fb:33:f0:11: mira sfer > 1
2020-05-26T20:14:14.310Z pce-0041 /bsd: c0:ee:fb:33:f0:11: mira sfer > 1
> The printf you've added does help; this looks strange:
>
> > athn0: sending msg 1/2 of the group key handshake to c0:ee:fb:33:f0:11
> > XXX ieee80211_setkeys()
> > [/home/mkucharski/openbsd/src/sys/net80211/ieee80211_proto.c|463] rekeysta
> > == 0
> > athn0: received msg 2/2 of the group key handshake from c0:ee:fb:33:f0:11
>
> I wouldn't expect 'rekeysta' to be zero in the above case.
> The value should match the amount of currently associated clients.
>
> The patch I sent had a small bug. It added an uninitialized variable at
> the top ieee80211_setkeys(). Please change:
>
> int rekeysta;
>
> to this:
>
> int rekeysta = 0;
Sure will recompile and run new kernel again, with my printf().
> As in shown in this new patch.
>
> diff fb4b0a9b3955c9a65ddbc22c472ac0e5fb216ac6 /usr/src
> blob - b44405af41448849059a4558c55bd182f823c1df
> file + sys/net80211/ieee80211_proto.c
> --- sys/net80211/ieee80211_proto.c
> +++ sys/net80211/ieee80211_proto.c
> @@ -433,6 +433,7 @@ ieee80211_setkeys(struct ieee80211com *ic)
> {
> struct ieee80211_key *k;
> u_int8_t kid;
> + int rekeysta = 0;
>
> /* Swap(GM, GN) */
> kid = (ic->ic_def_txkey == 1) ? 2 : 1;
> @@ -457,6 +458,9 @@ ieee80211_setkeys(struct ieee80211com *ic)
> }
>
> ieee80211_iterate_nodes(ic, ieee80211_node_gtk_rekey, ic);
> + ieee80211_iterate_nodes(ic, ieee80211_count_rekeysta, &rekeysta);
> + if (rekeysta == 0)
> + ieee80211_setkeysdone(ic);
> }
>
> /*
> @@ -466,6 +470,12 @@ void
> ieee80211_setkeysdone(struct ieee80211com *ic)
> {
> u_int8_t kid;
> +
> + /*
> + * Discard frames buffered for power-saving which were encrypted with
> + * the old group key. Clients are no longer able to decrypt them.
> + */
> + mq_purge(&ic->ic_bss->ni_savedq);
>
> /* install GTK */
> kid = (ic->ic_def_txkey == 1) ? 2 : 1;
--
Regards,
Mikolaj