Configuring WIFIG interface...done.Configuring WIFIP interface...Fatal trap 12: page fault while in kernel modecpuid = 1; apic id = 01fault virtual address = 0xfffffault code = supervisor read data, page not presentinstruction pointer = 0x20:0xffffffff80d5363dstack pointer = 0x28:0xfffffe0062769cd0frame pointer = 0x28:0xfffffe0062769d00code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1processor eflags = interrupt enabled, resume, IOPL = 0current process = 0 (ath0 net80211 taskq)rdi: 0000000000040000 rsi: 0000000000000001 rdx: 000000000000ffffrcx: 00000000500c2408 r8: 0000000000000000 r9: 0000000000000080rax: fffff800b0eb6942 rbx: fffff800b0a71000 rbp: fffffe0062769d00r10: 0000000000000000 r11: 000007fffffff000 r12: fffffe00629d6000r13: fffff800b0eb6938 r14: fffff800b0a71000 r15: fffffe006d9d3000trap number = 12panic: page faultcpuid = 1time = 1722197341KDB: stack backtrace:db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00627699c0vpanic() at vpanic+0x131/frame 0xfffffe0062769af0panic() at panic+0x43/frame 0xfffffe0062769b50trap_fatal() at trap_fatal+0x40b/frame 0xfffffe0062769bb0trap_pfault() at trap_pfault+0x46/frame 0xfffffe0062769c00calltrap() at calltrap+0x8/frame 0xfffffe0062769c00--- trap 0xc, rip = 0xffffffff80d5363d, rsp = 0xfffffe0062769cd0, rbp = 0xfffffe0062769d00 ---ieee80211_beacon_construct() at ieee80211_beacon_construct+0x7d/frame 0xfffffe0062769d00ieee80211_beacon_alloc() at ieee80211_beacon_alloc+0xb3/frame 0xfffffe0062769d40ath_beacon_alloc() at ath_beacon_alloc+0x84/frame 0xfffffe0062769d80ath_newstate() at ath_newstate+0x3f2/frame 0xfffffe0062769df0ieee80211_newstate_cb() at ieee80211_newstate_cb+0x1fc/frame 0xfffffe0062769e40taskqueue_run_locked() at taskqueue_run_locked+0x182/frame 0xfffffe0062769ec0taskqueue_thread_loop() at taskqueue_thread_loop+0xc2/frame 0xfffffe0062769ef0fork_exit() at fork_exit+0x7f/frame 0xfffffe0062769f30fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0062769f30--- trap 0, rip = 0, rsp = 0, rbp = 0 ---KDB: enter: panic[ thread pid 0 tid 100061 ]Stopped at kdb_enter+0x33: movq $0,0xfd9b22(%rip)db:0:kdb.enter.default> textdump settextdump setdb:0:kdb.enter.default> capture ondb:0:kdb.enter.default> run lockinfodb:1:lockinfo> show locksNo such command; use "help" to list available commandsdb:1:lockinfo> show alllocksNo such command; use "help" to list available commandsdb:1:lockinfo> show lockedvnodsLocked vnodesdb:0:kdb.enter.default> show pcpucpuid = 1dynamic pcpu = 0xfffffe0086ba0c40curthread = 0xfffff8000380a000: pid 0 tid 100061 critnest 1 "ath0 net80211 taskq"curpcb = 0xfffff8000380a520fpcurthread = noneidlethread = 0xfffff8000353e000: tid 100004 "idle: cpu1"self = 0xffffffff82611000curpmap = 0xffffffff81b81670tssp = 0xffffffff82611384rsp0 = 0xfffffe006276a000kcr3 = 0xffffffffffffffffucr3 = 0xffffffffffffffffscr3 = 0x0gs32p = 0xffffffff82611404ldt = 0xffffffff82611444tss = 0xffffffff82611434curvnet = 0
Configuring WLAN_HA interface...done.Configuring WLAN_MAIN interface...Fatal trap 12: page fault while in kernel modecpuid = 3; apic id = 03fault virtual address = 0xfffffault code = supervisor read data, page not presentinstruction pointer = 0x20:0xffffffff80d5363dstack pointer = 0x28:0xfffffe0062ca6cd0frame pointer = 0x28:0xfffffe0062ca6d00code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1processor eflags = interrupt enabled, resume, IOPL = 0current process = 0 (ath0 net80211 taskq)rdi: 0000000000040000 rsi: 0000000000000001 rdx: 000000000000ffffrcx: 00000000500c2408 r8: 0000000000000000 r9: 0000000000000180rax: fffff8010359f942 rbx: fffff80103529000 rbp: fffffe0062ca6d00r10: 0000000000000000 r11: 000007fffffff000 r12: fffffe0008dab000r13: fffff8010359f938 r14: fffff80103529000 r15: fffffe008a5f7000trap number = 12panic: page faultcpuid = 3time = 1721983801KDB: stack backtrace:db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0062ca69c0vpanic() at vpanic+0x131/frame 0xfffffe0062ca6af0panic() at panic+0x43/frame 0xfffffe0062ca6b50trap_fatal() at trap_fatal+0x40b/frame 0xfffffe0062ca6bb0trap_pfault() at trap_pfault+0x46/frame 0xfffffe0062ca6c00calltrap() at calltrap+0x8/frame 0xfffffe0062ca6c00--- trap 0xc, rip = 0xffffffff80d5363d, rsp = 0xfffffe0062ca6cd0, rbp = 0xfffffe0062ca6d00 ---ieee80211_beacon_construct() at ieee80211_beacon_construct+0x7d/frame 0xfffffe0062ca6d00ieee80211_beacon_alloc() at ieee80211_beacon_alloc+0xb3/frame 0xfffffe0062ca6d40ath_beacon_alloc() at ath_beacon_alloc+0x84/frame 0xfffffe0062ca6d80ath_newstate() at ath_newstate+0x3f2/frame 0xfffffe0062ca6df0ieee80211_newstate_cb() at ieee80211_newstate_cb+0x1fc/frame 0xfffffe0062ca6e40taskqueue_run_locked() at taskqueue_run_locked+0x182/frame 0xfffffe0062ca6ec0taskqueue_thread_loop() at taskqueue_thread_loop+0xc2/frame 0xfffffe0062ca6ef0fork_exit() at fork_exit+0x7f/frame 0xfffffe0062ca6f30fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0062ca6f30--- trap 0, rip = 0, rsp = 0, rbp = 0 ---KDB: enter: panic[ thread pid 0 tid 100064 ]Stopped at kdb_enter+0x33: movq $0,0xfd9b22(%rip)db:0:kdb.enter.default> textdump settextdump setdb:0:kdb.enter.default> capture ondb:0:kdb.enter.default> run lockinfodb:1:lockinfo> show locksNo such command; use "help" to list available commandsdb:1:lockinfo> show alllocksNo such command; use "help" to list available commandsdb:1:lockinfo> show lockedvnodsLocked vnodesdb:0:kdb.enter.default> show pcpucpuid = 3dynamic pcpu = 0xfffffe00871b7c40curthread = 0xfffff800038d1000: pid 0 tid 100064 critnest 1 "ath0 net80211 taskq"curpcb = 0xfffff800038d1520fpcurthread = noneidlethread = 0xfffff8000356d000: tid 100006 "idle: cpu3"self = 0xffffffff82e13000curpmap = 0xffffffff81b81670tssp = 0xffffffff82e13384rsp0 = 0xfffffe0062ca7000kcr3 = 0x2c1c000ucr3 = 0xffffffffffffffffscr3 = 0x68285000gs32p = 0xffffffff82e13404ldt = 0xffffffff82e13444tss = 0xffffffff82e13434curvnet = 0
The kernel panic error has been fixed adding kern.smp.disabled=1 sysctl tunable value.
Setting the wifi channel to automatic solves the problem in my case.
In general, I strongly discourage anyone from using any form of wireless on FreeBSD. Absolutely NOT fit for purpose and utter waste of time. Get a real Linux-based AP, end of story.