Usando o seguinte script para criar uma hotspot (com networkmanager instalado):
#!/bin/sh
nmcli con add type wifi ifname wlan0 con-name "caninos" autoconnect no wifi.mode ap wifi.band bg wifi.ssid "caninos" ipv4.method shared ipv6.method shared
nmcli con modify "caninos" wifi-sec.key-mgmt wpa-psk
nmcli con modify "caninos" wifi-sec.psk "12345678"
nmcli con up
Eu tenho erros ao tentar conectar com a hotspot por meio de outro computador. Nas ultimas linhas do dmesg:
[ 568.184410] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 568.184425] pgd = 5df99663
[ 568.184430] [00000000] *pgd=00000000
[ 568.184446] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 568.184453] Modules linked in: ipt_MASQUERADE bnep hci_uart serdev r8723bs(C) cfg80211 iptable_nat nf_nat_ipv4
[ 568.184487] CPU: 0 PID: 491 Comm: RTW_CMD_THREAD Tainted: G C 4.19.98 #1
[ 568.184492] Hardware name: labrador
[ 568.184515] PC is at ___cache_free+0x20/0x1a0
[ 568.184524] LR is at kfree+0x68/0x120
[ 568.184530] pc : [<c031ad78>] lr : [<c031b854>] psr: 60010093
[ 568.184535] sp : ead73d08 ip : ead73d50 fp : ead73d4c
[ 568.184539] r10: 00000000 r9 : ec116030 r8 : 00000580
[ 568.184545] r7 : ead73e18 r6 : c1616c88 r5 : bf0386b8 r4 : a0010013
[ 568.184550] r3 : eeaff42c r2 : bf0386b8 r1 : ead73ec8 r0 : 00000000
[ 568.184559] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
[ 568.184564] Control: 10c5387d Table: 2a94404a DAC: 00000051
[ 568.184571] Process RTW_CMD_THREAD (pid: 491, stack limit = 0x8e7cac4a)
[ 568.184577] Stack: (0xead73d08 to 0xead74000)
[ 568.184586] 3d00: 00000074 00000074 00000078 0000002a ead73d44 ead73d28
[ 568.184595] 3d20: c0728850 a0010013 bf0386b8 ead73ec8 ead73e18 00000580 ec116030 00000000
[ 568.184604] 3d40: ead73d6c ead73d50 c031b854 c031ad64 c1616c88 ec596180 ec116014 ead73e18
[ 568.184613] 3d60: ead73dcc ead73d70 bf0386b8 c031b7f8 00000005 00000013 00000000 ec116030
[ 568.184621] 3d80: c1616c88 00000000 ec116034 ec116014 00000000 00000000 00d73ddc 88a57ae7
[ 568.184630] 3da0: bf1106e8 00000000 ec6bd800 eac62c0a ead73e18 ec50e9a0 00480020 ec596180
[ 568.184638] 3dc0: ead73e14 ead73dd0 bf038c18 bf037c2c 00000000 ec50e800 ec6bd800 eac62c0a
[ 568.184647] 3de0: ead73e18 00000010 ee4b7a50 c1616c88 0000001c 00000000 00000000 bf130050
[ 568.184655] 3e00: eac5db80 000105e6 ead73eec ead73e18 bf1235ac bf038ba4 00000000 00000000
[ 568.184664] 3e20: 00000000 c161731c 00480020 00000000 c1616c88 c15cea50 2cee9000 ed801ac4
[ 568.184672] 3e40: ead73e83 000300d4 ead73e7c ead73e58 c010e6c4 88a57ae7 c15cea50 bf0da8e8
[ 568.184681] 3e60: c1616c88 eac62c00 ead73e84 ead73e78 c0707628 c07074e8 ead73ecc ead73e88
[ 568.184689] 3e80: eac62c1c 00000074 bf0da8a0 ead73f0c ead73ef0 a0010013 001fff00 ffffe000
[ 568.184698] 3ea0: 00000090 eac62c00 ead73ec4 ead73eb8 c0707648 c016d41c ead73edc ead73ec8
[ 568.184706] 3ec0: c016d41c c0193618 f2e34000 88a57ae7 f2e34000 f2e930d4 00000090 eac62c00
[ 568.184715] 3ee0: ead73f0c ead73ef0 bf0da914 bf123534 f2e35000 00000000 f2e35470 c1614400
[ 568.184724] 3f00: ead73f24 ead73f10 bf0e5918 bf0da758 f2e35000 f2e37000 ead73f74 ead73f28
[ 568.184732] 3f20: bf0cfd64 bf0e5898 ead73f4c c0fa95f0 f2e35460 f2e35450 bf13a000 ec50e200
[ 568.184741] 3f40: ead72000 f2e34000 c0189b90 eac80700 eac439c0 00000000 ead72000 f2e34000
[ 568.184750] 3f60: bf0cfbc8 eaaefad4 ead73fac ead73f78 c018a0a0 bf0cfbd4 eac8071c eac8071c
[ 568.184758] 3f80: 00000000 eac439c0 c0189f34 00000000 00000000 00000000 00000000 00000000
[ 568.184766] 3fa0: 00000000 ead73fb0 c01010e8 c0189f40 00000000 00000000 00000000 00000000
[ 568.184774] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 568.184781] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 568.184784] Backtrace:
[ 568.184798] [<c031ad58>] (___cache_free) from [<c031b854>] (kfree+0x68/0x120)
[ 568.184809] r10:00000000 r9:ec116030 r8:00000580 r7:ead73e18 r6:ead73ec8 r5:bf0386b8
[ 568.184813] r4:a0010013
[ 568.184986] [<c031b7ec>] (kfree) from [<bf0386b8>] (nl80211_send_station+0xa98/0xc9c [cfg80211])
[ 568.184994] r7:ead73e18 r6:ec116014 r5:ec596180 r4:c1616c88
[ 568.185098] [<bf037c20>] (nl80211_send_station [cfg80211]) from [<bf038c18>] (cfg80211_new_sta+0x80/0x1bc [cfg80211])
[ 568.185108] r10:ec596180 r9:00480020 r8:ec50e9a0 r7:ead73e18 r6:eac62c0a r5:ec6bd800