Commit Graph

311 Commits

Author SHA1 Message Date
kimocoder
a9695de429 Turned off USB ModeSwitch function/switch, may cause some trouble 2019-09-08 21:46:56 +02:00
kimocoder
bd54921c33 Cleanup/fix RAW_DATA policy (kernel v5.3) issue 2019-09-08 20:48:07 +02:00
root
0c7cac8843 Fix & cleanup kernel v5.3 support 2019-09-08 07:40:58 +00:00
kimocoder
0bb520cbfa Some allround fixes (minors) 2019-08-24 05:57:54 +02:00
kimocoder
14204645d5 Nuke CONFIG_LOAD_PHY_PARA_FROM_FILE function 2019-08-24 02:18:32 +02:00
kimocoder
eccee894cd Fix minor indentations 2019-08-24 01:46:25 +02:00
kimocoder
f2b259a389 Minor cleanup 2019-08-24 01:27:28 +02:00
kimocoder
d8b264a27d Fixed a issue when DEBUG was enabled 2019-08-24 01:11:34 +02:00
kimocoder
703d5772d4 Fix interface rename issue 2019-08-24 00:48:52 +02:00
kimocoder
c215cafcaa Cleaned out some Windows & FreeBSD code 2019-08-24 00:41:14 +02:00
kimocoder
bbe93fbd6d Fix compilation issues from earlier 2019-08-23 10:08:36 +02:00
kimocoder
fd796b8bc1 Register wiphy after we probe MAC addr. (moved to wiphy_preinit) 2019-08-18 18:49:07 +02:00
kimocoder
b3aef6d290 Fixed a issue when DEBUG was enabled 2019-08-18 04:45:55 +02:00
kimocoder
e9daed6187 Fix interface rename issue 2019-08-18 04:43:53 +02:00
kimocoder
2777bcd917 Fix the correct interface name instead of being nameless 2019-08-17 22:31:40 +02:00
kimocoder
39ae054a38 Cleaned up a patch applied 2019-08-17 20:11:40 +02:00
kimocoder
619d992fe4 Fixed WiFi Direct in driver 2019-08-17 20:10:54 +02:00
kimocoder
a00101e97a Cleaned up Makefile 2019-08-17 18:47:31 +02:00
kimocoder
e1258a0dde Cleaned out unsupported chipsets from usb_intfs.c 2019-08-17 15:14:11 +02:00
kimocoder
a0bb0e1d42 Added DEBUG to USB - CONFIG_USB_DEBUG in Makefile 2019-08-17 13:09:09 +02:00
kimocoder
33cd907df1 Just some minor permission fix PR 2019-08-17 00:11:15 +02:00
kimocoder
1e62d66f89 Relax regrules (wifi regdom) 2019-08-17 00:04:38 +02:00
kimocoder
c2fd51ad82 Added kernel v5.3+ support - enjoy 2019-08-16 23:44:50 +02:00
kimocoder
4d95fe8727 Enable DFS for 5ghz support 2019-08-16 23:27:14 +02:00
Christian Bremvåg
0a4ce9dddc
staging: replace explicit NULL comparison
Replace explicit NULL comparison with ! operator to
simplify code.

Found with Coccinelle script:
@@
expression ptr;
position p;
statement s0;
@@

ptr@p =
\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\|usb_alloc_urb\|
alloc_netdev\|dev_alloc_skb\)(...)
... when != ptr

if (
(
+ !
ptr
- == NULL
)
) s0
2019-08-16 23:10:38 +02:00
Christian Bremvåg
8f04e62ca7
Fix incorrect response to SIOCGIWESSID
When not associated with an AP, wifi device drivers should respond to the
SIOCGIWESSID ioctl with a zero-length string for the SSID, which is the
behavior expected by dhcpcd.

Currently, this driver returns an error code (-1) from the ioctl call,
which causes dhcpcd to assume that the device is not a wireless interface
and therefore it fails to work correctly with it thereafter.

When not associated with an AP, other wifi device drivers respond to the SIOCGIWESSID ioctl with a zero-length string for the SSID; this is the behaviour expected by dhcpcd.

This driver returns an error code (-1) from the ioctl call - this causes dhcpcd to assume that the device is not a wireless interface and therefore it fails to work correctly with it thereafter.

It would be good if the behaviour of this driver could be brought into line with that of other drivers for similar devices; that is for the response to SIOCGIWESSID to be a zero-length string and a success code rather than an error.
2019-08-16 22:53:33 +02:00
kimocoder
eaf96f0052 Pushing minor cleanups .. 2019-08-16 22:49:56 +02:00
kimocoder
1348762001 Remove signal handling from driver (software) 2019-08-16 22:11:06 +02:00
kimocoder
12d7cac87b Nuke good 'old debug also known as /proc 2019-08-16 19:15:24 +02:00
kimocoder
84f5ceca14 Hard disable old debug read/write file functions 2019-08-16 18:47:04 +02:00
kimocoder
3a405781ba Disbale / clean iw priv 2019-08-16 18:38:23 +02:00
kimocoder
341f3e9c80 Remove customer string 2019-08-16 18:31:23 +02:00
kimocoder
374c25a43f Upstream changed wireless band 2019-08-16 18:22:55 +02:00
kimocoder
a2227b00ca Remove private ioctl's 2019-08-16 18:19:34 +02:00
kimocoder
48ddf9727b Removed some file functions 2019-08-16 18:12:15 +02:00
kimocoder
bb31213a73 Updated cfg80211.h's add_virtual_inf implementations with new parameter 2019-08-16 17:47:09 +02:00
kimocoder
1972751e8f Remove SetPowerTracking() and GetPowerTracking() 2019-08-16 17:36:52 +02:00
kimocoder
7ff8e97218 Enable USB3 mode switch which also enables VHT SS3 2019-08-16 17:29:54 +02:00
kimocoder
31354957a2 adopted from upstream: cfg80211: unify cfg80211_roamed() 2019-08-16 17:27:14 +02:00
kimocoder
273361355d adopted from uptream: nl80211: allow multiple active 2019-08-16 17:10:49 +02:00
kimocoder
2e8d88e075 Missing channel assignment from 4.12 kernel support 2019-08-16 17:05:40 +02:00
kimocoder
d664d7e949 Use endian macros from kernel instead hardcoded 2019-08-16 16:50:59 +02:00
kimocoder
100b73747b Some tweaks and minors around .. 2019-08-16 16:42:12 +02:00
kimocoder
313311c14b Added LED control 2019-08-16 16:34:43 +02:00
kimocoder
9daa7978e9 Merge a collection of fixes 2019-08-16 06:28:27 +02:00
kimocoder
597de9c9b0 Added more iw output - not complete still 2019-08-16 04:20:13 +02:00
Farid Benamrouche
11cb9c2a37 added 8821 and 8814 2019-07-15 17:14:17 +02:00
Christian Bremvåg
df6381f35d
Added kernel v5.1+ support (get_ds -> KERNEL_DS) 2019-06-22 19:41:09 +02:00
kimocoder
472b8b3176 Added HT Greenfield capab + various ported fixes 2019-06-22 17:07:31 +02:00
kimocoder
decdb78ea0 Upload new v5.6.4.1 branch 2019-06-22 15:16:29 +02:00
Christian Bremvåg
598059dae8
Fix a typo leading to compile error 2019-06-17 12:47:25 +02:00
Christian Bremvåg
68351a7a20
Added bunch of VID/PID's from other branches (and vice versa) 2019-06-17 00:28:49 +02:00
Thijs Withaar
74cc8cdbc1 i386: mark floating point operations correctly.
From commit #1603b05c
2019-06-08 10:47:20 +02:00
Thijs Withaar
13456a8af1 wifi_regd: regulations are handled by crda, so don't do that here. 2019-06-08 10:47:12 +02:00
Thijs Withaar
2cb491951f wifi_regd: remove unused code 2019-06-08 08:33:11 +02:00
Christian Bremvåg
003c2aa3da
Merge pull request #365 from satmandu/v5.6.4
Compilation fixes for Kernel 5.1 & 5.2
2019-05-30 22:50:58 +02:00
kimocoder
8a49d214da Added HT Greenfield capabilities 2019-05-30 22:39:27 +02:00
satmandu
75c538098b
Compilation fix for kernel 5.1+
As per 48c223a03c
2019-05-30 14:48:09 -04:00
satmandu
231d5c2d4e
fix missing "(" 2019-05-30 14:40:14 -04:00
satmandu
aa405e0b18
removed space 2019-05-30 14:38:05 -04:00
satmandu
36ff7bcd7f
os_dep: fix compilation warning and kernel 5.2 as per commit to 5.3.4
Adapted patch here: e013a161f8
2019-05-30 14:34:13 -04:00
kimocoder
6c1b4a333b Upload new v5.6.4 driver 2019-05-24 21:43:57 +02:00
shyan003
3de2dde344
Update usb_intf.c 2019-05-24 15:50:23 +08:00
Christian Bremvåg
e013a161f8
Merge pull request #344 from Darnor/v5.3.4
os_dep: fix compilation warning and kernel 5.2
2019-05-22 00:26:41 +02:00
kimocoder
94cd8fba9e Fix used before initialized warning 2019-05-22 00:12:23 +02:00
kimocoder
cccd2f324c Add support for TP-Link Archer T2U Nano AC600 2019-05-22 00:03:27 +02:00
kimocoder
d1d2446e05 Revert back some changes to fix frame injection 2019-05-21 23:50:29 +02:00
Hansruedi Patzen
d8d9399a5b compilation: fix override-init warning
rtl8812au/os_dep/linux/ioctl_cfg80211.c:9512:25: warning: initialized field overwritten [-Woverride-init]
  .set_monitor_channel = cfg80211_rtw_set_monitor_channel,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-05-15 14:26:01 +02:00
Hansruedi Patzen
e2d6505b67 linux-5.2: disable fallback from rtw_select_queue
The fallback parameter has been removed in the latest kernel (>= 5.2)

See: a350eccee5
2019-05-15 14:25:00 +02:00
kimocoder
aaef1baf31 Trying another channel switching code 2019-04-07 18:46:13 +02:00
kimocoder
54710f5403 Fix used before initialized warning 2019-04-07 18:37:55 +02:00
kimocoder
9e298d0fa3 fix compile when CONFIG_IOCTL_CFG80211 defined 2019-04-07 18:15:47 +02:00
kimocoder
78dbffdf16 Fix radiotap header for RTL8814AU 2019-04-07 18:02:57 +02:00
kimocoder
03933bb002 Check arguments of the set tx power ioctl 2019-04-07 17:45:04 +02:00
kimocoder
3a4df6e3dc Fix channel switch in the monitor mode if both CONFIG_WIRELESS_EXT and CONFIG_CFG80211_WEXT are enabled 2019-04-07 17:10:55 +02:00
kimocoder
232bcd5fbc Set dev_type to wlan 2019-04-06 08:46:46 +02:00
kimocoder
19aa60f1a1 Fix build for 4.19.0-041900rc4-generic from ubuntu kernel-ppa 2019-04-06 08:43:23 +02:00
kimocoder
7bf20f5f82 Fix function call signature on rtw_* function definition 2019-04-06 08:38:14 +02:00
kimocoder
5187e1b094 Fix CONFIG_RTW_DEBUG compilation and levels 2019-04-06 08:17:54 +02:00
kimocoder
35f64254c1 Relax some wifi regional rules 2019-04-06 08:10:11 +02:00
kimocoder
ee01e58834 Adoptations for using the driver on android/nethunter 2019-04-06 01:16:13 +02:00
kimocoder
cb7b83e8a6 Hostapd/WPS support 2019-04-06 00:51:57 +02:00
kimocoder
5b5d01f393 do not remove device if it is not of type monitor 2019-04-06 00:34:58 +02:00
kimocoder
a3ed1ef28a Added some error checking feature 2019-02-16 02:29:58 +01:00
kimocoder
4848f29d19 Protect rtw_cfg80211_unlink_bss() against pnetwork of NULL 2019-02-16 02:22:54 +01:00
kimocoder
eaf2707950 Reorder shutdown to eliminate warning from cfg80211 2019-02-16 02:20:27 +01:00
kimocoder
1ff4839d5b Make proper fix for freeze on unload 2019-02-16 02:11:55 +01:00
kimocoder
91a66fdefe Fix connection error on resume 2019-02-16 01:09:02 +01:00
kimocoder
97674c1259 Minor fixes several places 2019-02-16 00:36:43 +01:00
kimocoder
d1c55e0858 Fix CONFIG_CONCURRENT_MODE building. Missing VIF code. 2019-02-16 00:13:16 +01:00
kimocoder
ed72c44df7 Add explicit memset call to avoid potentially corrupt data 2019-02-15 23:16:15 +01:00
kimocoder
fc3c9149db Fixed the _get_channel function, missing 2 cases 2019-02-15 18:24:00 +01:00
kimocoder
0eda114fda Added support for kernel v5.0+ 2019-02-15 15:51:37 +01:00
Alexander Traud
f150da568a
Add USB Device Obihai OBiWiFi with 3823:6249
USB driver gets attached and Wi-Fi adapter is usable, tested in Ubuntu 18.04 LTS with Secure Boot disabled.
2019-01-08 10:30:26 +01:00
Thijs Withaar
0c3cfa41e4 fully apply CONFIG_DISABLE_REGD_C
Fix floating point in VHT_HW_TX for both x86 and rpi
2018-11-20 22:37:34 +01:00
kimocoder
0a4042afbd Add kernel v4.20 support and minor compiler warning turned off 2018-11-14 23:39:13 +01:00
kimocoder
e972ae8162 Update kernel v4.19 support 2018-11-14 23:36:44 +01:00
kimocoder
926549fe69 Fix problem where interfaces are down at start 2018-11-10 21:34:15 +01:00
kimocoder
dae6545ef1 Fix builds for kernels older than 4.11.0 2018-11-10 21:22:12 +01:00
kimocoder
d3e6831396 More cleanup around Makefile++ 2018-10-20 22:53:01 +02:00