Hey
i success compiled kernel for galaxy s7 oreo with support to atheros htc wifi usb dongles.
I put firmware htc_9271.fw to /vendot/firmware/
and after i plugin my usb wifi card i get all time kernel panic and reboot.
Could someone help me why it is?
This kernel panic is only at Oreo+(tested Stock Oreo, LineageOS OreoBased and Pie Based)
Nougat and Marshmallow working fine with this firmware.
I got this htc_9271.fw from vendor website, tried another ones from internet but is too kernel panic
Maybe someone know what is in Oreo another than Nougat and Marshmallow?

this is cuted last_kmsg from Stock Oreo ROM:

<6>[ 249.919612] [3: kworker/3:2: 4705] usb usb1-port1: port 1, status 0101, change 0000, 12 Mb/s
<6>[ 250.039444] [3: kworker/3:2: 4705] usb 1-1: new high-speed USB device number 2 using xhci-hcd
<6>[ 250.203517] [3: kworker/3:2: 4705] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271
<6>[ 250.203585] [3: kworker/3:2: 4705] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
<6>[ 250.203630] [3: kworker/3:2: 4705] usb 1-1: Product: UB93
<6>[ 250.203670] [3: kworker/3:2: 4705] usb 1-1: Manufacturer: ATHEROS
<6>[ 250.203711] [3: kworker/3:2: 4705] usb 1-1: SerialNumber: 12345
<6>[ 250.215659] [3: kworker/3:2: 4705] usb 1-1: ath9k_htc: Firmware htc_9271.fw requested
<6>[ 250.216574] [3: kworker/3:2: 4705] usb_notify: call_device_notify device
<6>[ 250.216635] [3: kworker/3:2: 4705] usb_notify: send_otg_notify event=device_connect(20) enable=1
<6>[ 250.216673] [3: kworker/3:2: 4705] usb_notify: extra_notifier_callback event=device_connect(20)
<6>[ 250.216711] [3: kworker/3:2: 4705] usb_notify: extra_notify_state+ event=device_connect(20), enable=on
<6>[ 250.216750] [3: kworker/3:2: 4705] usb_notify: extra_notify_state- event=device_connect(20), cable=host_id
<6>[ 250.216787] [3: kworker/3:2: 4705] usb_notify: check_gamepad_device : product=UB93
<6>[ 250.216823] [3: kworker/3:2: 4705] usb_notify: check_lanhub_device : product=UB93
<6>[ 250.216863] [3: kworker/3:2: 4705] usb_notify: check_device_speed : attached highspeed device
<6>[ 250.216902] [3: kworker/3:2: 4705] usb_notify: set_hw_param USB device connected - Class : 0xff, speed : 0x3
<4>[ 250.301133] [0: wpa_supplicant: 5504] Unknown PRIVATE command GET_LQCM_REPORT - ignored
<6>[ 250.683450] [3: kworker/3:2: 4705] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51008
<6>[ 250.936275] [3: kworker/3:2: 4705] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
<6>[ 251.179882] [3: kworker/3:2: 4705] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.4
<7>[ 251.179945] [3: kworker/3:2: 4705] ath: EEPROM regdomain: 0x65
<7>[ 251.179984] [3: kworker/3:2: 4705] ath: EEPROM indicates we should expect a direct regpair map
<7>[ 251.180035] [3: kworker/3:2: 4705] ath: Country alpha2 being used: 00
<7>[ 251.180071] [3: kworker/3:2: 4705] ath: Regpair used: 0x65
<0>[ 251.199777] [3: kworker/3:2: 4705] Unable to handle kernel NULL pointer dereference at virtual address 00000024
<1>[ 251.199835] [3: kworker/3:2: 4705] pgd = ffffffc0028f7000
<1>[ 251.199869] [3: kworker/3:2: 4705] [00000024] *pgd=00000008fa008003, *pud=00000008fa008003, *pmd=00000008fa009003, *pte=00600000101c0707
<4>[ 251.200076] [3: kworker/3:2: 4705] ------------[ cut here ]------------
<0>[ 251.200113] [3: kworker/3:2: 4705] Kernel BUG at ffffffc0006122a4 [verbose debug info unavailable]
<0>[ 251.200150] [3: kworker/3:2: 4705] Internal error: Oops - BUG: 96000006 [#1] PREEMPT SMP
<0>[ 251.200196] [3: kworker/3:2: 4705] exynos-snapshot: exynos_ss_get_reason 0x0 (CPU:3)
<0>[ 251.200237] [3: kworker/3:2: 4705] exynos-snapshot: core register saved(CPU:3)
<0>[ 251.200275] [3: kworker/3:2: 4705] CPUMERRSR: 000000000010047f, L2MERRSR: 0000000010000910
<0>[ 251.200313] [3: kworker/3:2: 4705] SCTLR_EL1: 04C5591D,
<0>[ 251.200347] [3: kworker/3:2: 4705] exynos-snapshot: context saved(CPU:3)
<6>[ 251.200487] [3: kworker/3:2: 4705] exynos-snapshot: item - log_kevents is disabled
<4>[ 251.200563] [3: kworker/3:2: 4705] CPU: 3 PID: 4705 Comm: kworker/3:2 Tainted: G W 3.18.14 #1
<4>[ 251.200599] [3: kworker/3:2: 4705] Hardware name: Samsung UNIVERSAL8890 board based on EXYNOS8890 (DT)
<4>[ 251.200670] [3: kworker/3:2: 4705] Workqueue: events request_firmware_work_func
<4>[ 251.200712] [3: kworker/3:2: 4705] task: ffffffc8795f6000 ti: ffffffc84893c000 task.ti: ffffffc84893c000
<4>[ 251.200762] [3: kworker/3:2: 4705] PC is at wl_cfg80211_netdev_notifier_call+0x6c/0x280
<4>[ 251.200802] [3: kworker/3:2: 4705] LR is at wl_cfg80211_netdev_notifier_call+0x2c/0x280
<4>[ 251.200842] [3: kworker/3:2: 4705] pc : [<ffffffc0006122a4>] lr : [<ffffffc000612264>] pstate: 20000145
<4>[ 251.200881] [3: kworker/3:2: 4705] sp : ffffffc84893fa40
<4>[ 251.200917] [3: kworker/3:2: 4705] x29: ffffffc84893fa40 x28: ffffffc001fd2000
<4>[ 251.200956] [3: kworker/3:2: 4705] x27: ffffffc002200568 x26: ffffffc84893fb58





Second log from Nougat which work fine:
[ 3839.716141] [1: kworker/1:3: 9974] hub 2-0:1.0: USB hub found
[ 3839.716222] [1: kworker/1:3: 9974] hub 2-0:1.0: 1 port detected
[ 3839.902144] [1: kworker/1:3: 9974] usb usb1-port1: port 1, status 0101, change 0000, 12 Mb/s
[ 3840.032240] [1: kworker/1:3: 9974] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 3840.198373] [1: kworker/1:3: 9974] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271
[ 3840.198548] [1: kworker/1:3: 9974] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 3840.198685] [1: kworker/1:3: 9974] usb 1-1: Product: UB93
[ 3840.198815] [1: kworker/1:3: 9974] usb 1-1: Manufacturer: ATHEROS
[ 3840.198943] [1: kworker/1:3: 9974] usb 1-1: SerialNumber: 12345
[ 3840.218365] [1: kworker/1:3: 9974] usb 1-1: ath9k_htc: Firmware htc_9271.fw requested
[ 3840.222525] [1: kworker/1:3: 9974] usb_notify: call_device_notify USB device connected - Class : 0xff, speed : 0x3
[ 3840.222692] [1: kworker/1:3: 9974] usb_notify: send_otg_notify event=device_connect(20) enable=1
[ 3840.222817] [1: kworker/1:3: 9974] usb_notify: extra_notifier_callback event=device_connect(20)
[ 3840.222939] [1: kworker/1:3: 9974] usb_notify: extra_notify_state+ event=device_connect(20), enable=on
[ 3840.223064] [1: kworker/1:3: 9974] usb_notify: extra_notify_state- event=device_connect(20), cable=host_id
[ 3840.223181] [1: kworker/1:3: 9974] usb_notify: check_gamepad_device : product=UB93
[ 3840.223295] [1: kworker/1:3: 9974] usb_notify: check_lanhub_device : product=UB93
[ 3840.223416] [1: kworker/1:3: 9974] usb_notify: check_device_speed : attached highspeed device
[ 3840.466240] I[0: vold: 3246] mif: LNK-RX(23): f8 eb 17 00 13 00 4a 00 07 06 03 40 18 63 63 00 ...
[ 3840.505018] [4: vold:10610] SELinux: initialized (dev fuse, type fuse), uses mountpoint labeling
[ 3840.694703] [1: kworker/1:3: 9974] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51008
[ 3840.802147] [2: argosd: 3355] argos_pm_qos_notify: name:UFS, speed:143Mbps, prev level:-1, request level:0
[ 3840.807789] [2: argosd: 3355] argos_freq_lock name:UFS, CPU_MIN=0, CPU_MAX=0, KFC_MIN=1274000, KFC_MAX=0, MIF=1144000, INT=0
[ 3840.827441] [0:SSRM Handler Th: 6868] max77854_fg_read_avg_current: avg_current=-120625
[ 3840.843198] I[3: swapper/3: 0] mif: LNK-TX(11): f8 eb 0b 00 07 00 ae 00 08 11 02
[ 3840.845195] I[0: swapper/0: 0] mif: LNK-RX(375): f8 eb 77 01 73 01 4b ae 08 11 02 12 00 00 00 01 ...
[ 3840.851495] I[3: swapper/3: 0] mif: LNK-TX(11): f8 ec 0b 00 07 00 89 00 08 11 02
[ 3840.853145] I[0:earchbox:search:10614] mif: LNK-RX(15): f8 ec 0f 00 0b 00 27 89 08 11 02 00 00 00 00
[ 3840.945385] [1: kworker/1:3: 9974] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
[ 3841.041706] [3: kworker/u16:5: 9380] vfsspi_work_func_debug ldo:1, sleep:0, irq:0, tz:1, type:viper, cnt_irq:0, adm: 0
[ 3841.180354] [1: kworker/1:3: 9974] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.4
[ 3841.180375] [1: kworker/1:3: 9974] ath: EEPROM regdomain: 0x65
[ 3841.180387] [1: kworker/1:3: 9974] ath: EEPROM indicates we should expect a direct regpair map
[ 3841.180401] [1: kworker/1:3: 9974] ath: Country alpha2 being used: 00
[ 3841.180412] [1: kworker/1:3: 9974] ath: Regpair used: 0x65
[ 3841.186105] [1: kworker/1:3: 9974] CFG80211-INFO2) wl_cfg80211_netdev_notifier_call : Enter
[ 3841.188874] [1: kworker/1:3: 9974] CFG80211-INFO2) wl_cfg80211_netdev_notifier_call : Enter
[ 3841.190012] [1: kworker/1:3: 9974] ieee80211 phy1: Atheros AR9271 Rev:1
[ 3841.352611] [6: swapper/6: 0] CPU6: Booted secondary processor
[ 3841.352625] [6: swapper/6: 0] Detected VIPT I-cache on CPU6
[ 3841.352680] [6: swapper/6: 0] handle_IPI: IPI_WAKEUP
[ 3841.353990] [7: swapper/7: 0] CPU7: Booted secondary processor
[ 3841.354002] [7: swapper/7: 0] Detected VIPT I-cache on CPU7
[ 3841.354049] [7: swapper/7: 0] handle_IPI: IPI_WAKEUP