------------[ cut here ]------------
WARNING: CPU: 1 PID: 8868 at net/mac80211/chan.c:833 ieee80211_recalc_chanctx_chantype+0x89d/0x10f0
Modules linked in:
CPU: 1 UID: 0 PID: 8868 Comm: syz.0.807 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:ieee80211_recalc_chanctx_chantype+0x89d/0x10f0
Code: c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 5b 94 23 f7 4d 8b 36 4d 39 fe 74 22 e8 5e 14 c0 f6 e9 ef f8 ff ff e8 54 14 c0 f6 90 <0f> 0b 90 e9 47 07 00 00 e8 46 14 c0 f6 e9 39 07 00 00 48 83 7c 24
RSP: 0018:ffffc9000440e240 EFLAGS: 00010293
RAX: ffffffff8affa182 RBX: 0000000000000000 RCX: ffff888108499cc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff888109796980
RBP: ffffc9000440e400 R08: ffff888109795737 R09: 1ffff110212f2ae6
R10: dffffc0000000000 R11: ffffed10212f2ae7 R12: dffffc0000000000
R13: 0000000000000070 R14: ffff888039d128c0 R15: ffff888039d128c0
FS:  00007fc37cfcc6c0(0000) GS:ffff8881a3c3d000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc37cfcbfc8 CR3: 0000000128778000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 ieee80211_assign_link_chanctx+0x5ca/0xd70
 __ieee80211_link_release_channel+0x33b/0x4a0
 ieee80211_leave_mesh+0xc5/0x130
 cfg80211_leave_mesh+0x293/0x800
 cfg80211_netdev_notifier_call+0x1b0/0x1440
 notifier_call_chain+0x1b6/0x3e0
 __dev_close_many+0x106/0x6f0
 __dev_change_flags+0x2c7/0x6d0
 netif_change_flags+0x88/0x1a0
 do_setlink+0xc55/0x41c0
 rtnl_newlink+0x14ad/0x1c80
 rtnetlink_rcv_msg+0x7cf/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc37c18ec29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc37cfcc038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fc37c3d6180 RCX: 00007fc37c18ec29
RDX: 0000000000000000 RSI: 0000200000000040 RDI: 000000000000000c
RBP: 00007fc37c211e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc37c3d6218 R14: 00007fc37c3d6180 R15: 00007ffc50c935a8
 </TASK>
