forked from gtxaspec/atbm-wifi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKconfig
More file actions
511 lines (462 loc) · 15.7 KB
/
Kconfig
File metadata and controls
511 lines (462 loc) · 15.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
menuconfig ATBM_WIRELESS
tristate "Atbm Wireless Lan"
default m
if ATBM_WIRELESS
config ATBM_APOLLO
tristate "ATBM_APOLLO WLAN support"
select CRYPTO
select CRYPTO_ARC4
select CRYPTO_AES
select CRC32
select AVERAGE
depends on !ATBM_MENUCONFIG
help
This is an experimental driver for the ATBM_APOLLO chip-set.
Enabling this option enables the generic driver without
any platform support.
Please select the appropriate platform below.
config ATBM_WEXT
tristate "support wireless wext"
select WIRELESS_EXT
select WEXT_PRIV
help
only select WEIRELESS_EXT and WEXT_PRIV
if ATBM_MENUCONFIG || ATBM_APOLLO
menu "select which atbm Wi-Fi chip type"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
#choice
# prompt "select which atbm Wi-Fi product will be used:ATBM603X,ATBM6012B-y,ATBM603x_ATBM6012B-y,default:ATBM603x"
# default ATBM603x
# depends on ATBM_MENUCONFIG || ATBM_APOLLO
# help
# Here,you must make sure which atbm Wi-Fi product you will want to use,ATBM603X,ATBM6012B-y,ATBM603x_ATBM6012B-y
config ATBM603x
bool "ATBM603x && ATBM6012B chip"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default n
help
we will use ATBM603x&ATBM6012B chip
config ATBM6012B_y
bool "ATBM603x-x/y && ATBM6012B-x/y chip"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default y
help
we will use ATBM603x&ATBM6012B chip
config ATBM6132
bool "ATBM6132U/S chip"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default n
help
we will use ATBM6132U/S chip
#config WIFI4_ALL_CHIP
# bool "WIFI4 ALL CHIP"
# depends on ATBM_MENUCONFIG || ATBM_APOLLO
# help
# we will use ATBM603x&ATBM6012B-y chip
endmenu
#endchoice
choice
prompt "select which bus will be used"
default ATBM_USB_BUS
depends on ATBM_MENUCONFIG || ATBM_APOLLO
help
Here,you must make sure what interface you will want to use,usb
sdio or spi
config ATBM_USB_BUS
bool "usb bus"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
help
we will use usb bus
config ATBM_SDIO_BUS
bool "sdio bus"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
help
sdio bus
config ATBM_SPI_BUS
bool "spi bus"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
help
we will use spi bus
endchoice
choice
prompt "Select which firmware will be used:.bin or firmware.h"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default ATBM_USE_FIRMWARE_BIN
help
include firmware.h or request xxx.bin from system
config ATBM_USE_FIRMWARE_BIN
bool "Request .bin from system"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
help
Request .bin from system
config ATBM_USE_FIRMWARE_H
bool "Include firmware.h"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
help
include firmware.h
endchoice
choice
prompt "select which sido dpll freq used:24M or 40M.default:40M"
default ATBM_SDIO_40M
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_SDIO_BUS && (ATBM602x || ATBM601x)
help
Here,you must make sure the sdio interface use 40M or 24M dpll
config ATBM_SDIO_40M
bool "SDIO 40M"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_SDIO_BUS
help
we will use SDIO 40M
config ATBM_SDIO_24M
bool "SDIO 24M"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_SDIO_BUS
help
we will use SDIO 24M
endchoice
choice
prompt "select witch band the chip will support"
default ATBM_SUPPORT_BAN_5G_24G
depends on (ATBM_MENUCONFIG || ATBM_APOLLO)
help
ATBM_SUPPORT_BAN_24G:only support 2.4G
ATBM_SUPPORT_BAN_5G_PRETEND_24: set 5G channel to 2.4G special channel
ATBM_SUPPORT_BAN_5G_24G:support both 5G and 2.4G channel
config ATBM_SUPPORT_BAN_24G
bool "2.4G channel"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO)
help
only support 2.4G channel
config ATBM_SUPPORT_BAN_5G_PRETEND_24
bool "2.4G and 2.4G special channel"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO)
help
support 2.4G channel and 2.4g special channel
config ATBM_SUPPORT_BAN_5G_24G
bool "both 5G and 2.4G channel"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && (ATBM6132 || WIFI4_ALL_CHIP)
help
support both 5G and 2.4G channel
endchoice
menu "Driver Extern Function Select"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
config ATBM_SUPPORT_BRIDGE
bool "Enable wifi interface bridge function"
default y
config ATBM_FUNC_NOTXCONFIRM
bool "Enable Tx no confirm function to enhance performance"
default y
config ATBM_FUNC_EARLYSUSPEND
bool "Enable early suspend function for some platform power save"
default n
config ATBM_FUNC_MONITOR
bool "Enable rx monitor function to receive all package"
default y
config ATBM_FUNC_MONITOR_HDR_PRISM
bool "Enable rx monitor header prism"
depends on ATBM_FUNC_MONITOR
default n
config ATBM_FUNC_SKB_DEBUG
bool "Enable skb debug function to debug skb alloc and free"
default n
config ATBM_FUNC_MEM_DEBUG
bool "Enable memory debug function to debug memory alloc and free"
default n
config ATBM_WITHBAND_ONLY_HT20
bool "Enable only support HT20"
default n
config ATBM_FUNC_USB_AGGRTX
bool "Enabel usb aggr tx funciton to enchance tx performance"
depends on ATBM_USB_BUS
default n
select ATBM_FUNC_USB_DMABUFF
config ATBM_FUNC_USB_DMABUFF
bool "Enable usb use dam buff for xmit"
depends on ATBM_USB_BUS
default n
config ATBM_FUNC_USB_CMD_ENHANCE
bool "Enable usb cmd send directly function"
depends on ATBM_USB_BUS
default n
select ATBM_FUNC_USB_AGGRTX
config ATBM_FUNC_USB_DATA_ENHANCE
bool "Enable usb data send directly function"
depends on ATBM_USB_BUS
default n
select ATBM_FUNC_USB_AGGRTX
config ATBM_FUNC_PS_WAKEUP_RELOAD_FW
bool "Enable usb wakeup reload fw function"
depends on ATBM_USB_BUS
default n
config ATBM_FUNC_HW_CHSUM
bool "Enable hw do tcp/ip checksum function"
depends on ATBM603x
default n
config ATBM_SW_RATE_CTRL
bool "Enable sw do rate ctrl"
depends on !ATBM_FUNC_NOTXCONFIRM
default n
config ATBM_FUNC_P2P_ENABLE
bool "Enable P2P"
default n
config ATBM_FUNC_SW_ENC
bool "enable sw enc function"
default n
config ATBM_FUNC_DEV_CTRL_API
bool "enabel dev_ctrl api"
default y
config ATBM_FUNC_MODULE_FS
bool "enable modules fs"
default y
config ATBM_FUNC_DRV_LOADER_FAST
bool "Enable loader driver fast function"
depends on ATBM_USB_BUS
default n
config ATBM_FUNC_PRIVE_IE
bool "Enable iwpriv some prive func"
default y
config ATBM_FUNC_SAE_AUTHEN
bool "Enable WPA3 support,but make sure the kernel support sae before enabled"
default y
endmenu
menu "Driver debug features"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
config ATBM_APOLLO_DEBUGFS
bool "Expose driver internals to DebugFS (DEVELOPMENT)"
config ATBM_APOLLO_DEBUG_ON_BOOT
bool "Enable selected driver debug messages during boot time (DEVELOPMENT)"
config ATBM_APOLLO_BH_DEBUG
bool "Enable low-level device communication logs (DEVELOPMENT)"
config ATBM_APOLLO_WSM_DEBUG
bool "Enable WSM API debug messages (DEVELOPMENT)"
config ATBM_APOLLO_WSM_DUMPS
bool "Verbose WSM API logging (DEVELOPMENT)"
config ATBM_APOLLO_WSM_DUMPS_SHORT
bool "Dump only first x bytes (default 20) (DEVELOPMENT)"
config ATBM_APOLLO_TXRX_DEBUG
bool "Enable TX/RX debug messages (DEVELOPMENT)"
config ATBM_APOLLO_TX_POLICY_DEBUG
bool "Enable TX policy debug (DEVELOPMENT)"
config ATBM_APOLLO_STA_DEBUG
bool "Enable STA/AP debug (DEVELOPMENT)"
config ATBM_APOLLO_DUMP_ON_ERROR
bool "Dump kernel in case of critical error (DEVELOPMENT)"
endmenu
config BLUEDROID
bool "Enable bluedroid"
default n
help
bluedroid support
config ATBM_SDIO_MMCx
string "which mmc will be used"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_SDIO_BUS
default "mmc0"
help
set which mmc will be used
config ATBM_APOLLO_USE_GPIO_IRQ
bool "Use GPIO interrupt"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_SDIO_BUS
default n
help
Say Y here if you want to include GPIO IRQ support instead of SDIO IRQ.
if unsure, say N.
config ATBM_APOLLO_SUPPORT_SGI
bool "Use short GI support"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default y
help
Say Y here if you want to include short gi support
If unsure, say N.
config MAC80211_ATBM_HAS_RC
bool
config MAC80211_ATBM_RC_MINSTREL
bool "Minstrel" if EXPERT && ATBM_SW_RATE_CTRL
select MAC80211_ATBM_HAS_RC
default y
depends on ATBM_SW_RATE_CTRL
help
This option enables the 'minstrel' TX rate control algorithm
config MAC80211_ATBM_RC_MINSTREL_HT
bool "Minstrel 802.11n support" if EXPERT && ATBM_SW_RATE_CTRL
depends on MAC80211_ATBM_RC_MINSTREL && ATBM_SW_RATE_CTRL
default y
help
This option enables the 'minstrel_ht' TX rate control algorithm
config MAC80211_ATBM_RC_DEFAULT_MINSTREL
bool "Minstrel" if EXPERT && ATBM_SW_RATE_CTRL
depends on MAC80211_ATBM_RC_MINSTREL && ATBM_SW_RATE_CTRL
default y
help
Select Minstrel as the default rate control algorithm.
config ATBM_WIFIIF1_NAME
string "Setting wifi interface 1 name"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default "wlan%d"
help
Set name for wireless interface 1,the length of name is must smaller than 15
config NEED_P2P0_INTERFACE
bool "ENABLE scond interface"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default y
help
enable scond interface,default p2p0
config ATBM_WIFIIF2_NAME
string "Setting wifi interface 2 name"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && NEED_P2P0_INTERFACE
default "p2p%d"
help
set name for wireless interface 2,the length of name is must smaller than 15
config ATBM_MODULE_PM_STAYAWK
string "Setting wifi pm stay awake modules name"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default "pm_stayawake"
help
set name for pm stay awake modules,the length of name is must smaller than 15
config ATBM_MODULE_DRIVER_NAME
string "Setting wifi module driver name"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && (ATBM_USB_BUS || ATBM_SDIO_BUS)
default "atbm_wlan"
help
set name for wireless interface 2,the length of name is must smaller than 15
config ATBM_PLATFORM_DEVICE_NAME
string "Setting wifi platform device name"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && (ATBM_USB_BUS || ATBM_SDIO_BUS)
default "atbm_dev_wifi"
help
set name for wireless platform device name,the length of name is must smaller than 15
config ATBM_USB_VID
hex "Setting wifi usb vid"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_USB_BUS && (ATBM603x && !ATBM6012B_y && !ATBM6132)
default 0x007a
help
set usb enumeration vendor id ,value is hex
config ATBM_USB_PID
hex "Setting wifi usb pid"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_USB_BUS && (ATBM603x && !ATBM6012B_y && !ATBM6132)
default 0x8888
help
set usb enumeration product id ,value is hex
config ATBM_USB_VID
hex "Setting wifi usb vid"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_USB_BUS && (!ATBM603x && ATBM6012B_y && !ATBM6132)
default 0x007a
help
set usb enumeration vendor id ,value is hex
config ATBM_USB_PID
hex "Setting wifi usb pid"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_USB_BUS && (!ATBM603x && ATBM6012B_y && !ATBM6132)
default 0x888B
help
set usb enumeration product id ,value is hex
config ATBM_USB_VID
hex "Setting wifi usb vid"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_USB_BUS && (!ATBM603x && !ATBM6012B_y && ATBM6132)
default 0x007a
help
set usb enumeration vendor id ,value is hex
config ATBM_USB_PID
hex "Setting wifi usb pid"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_USB_BUS && (!ATBM603x && !ATBM6012B_y && ATBM6132)
default 0x8890
help
set usb enumeration product id ,value is hex
config ATBM_SDIO_VID
hex "Setting wifi sdio vid"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_SDIO_BUS
default 0x007a
help
set SDIO enumeration vendor id ,value is hex
config ATBM_SDIO_PID
hex "Setting wifi sdio pid"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && ATBM_SDIO_BUS
default 0x6011
help
set SDIO enumeration product id ,value is hex
config ATBM_MODULE_NAME
string "set module name"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default "atbm603x_wifi_usb" if ATBM603x && ATBM_USB_BUS
default "atbm603x_X_wifi_usb" if ATBM6012B_y && ATBM_USB_BUS
default "atbm613x_wifi_usb" if ATBM6132 && ATBM_USB_BUS
default "atbm603x_comb_wifi_usb" if WIFI4_ALL_CHIP && ATBM_USB_BUS
default "atbm603x_wifi_spi" if ATBM603x && ATBM_SPI_BUS
default "atbm603x_wifi_sdio" if ATBM603x && ATBM_SDIO_BUS
default "atbm603x_X_wifi_sdio" if ATBM6012B_y && ATBM_SDIO_BUS
default "atbm613x_wifi_sdio" if ATBM6132 && ATBM_SDIO_BUS
default "atbm6041_wifi_sdio" if ATBM6041
help
set name for wifi module
config ATBM_FW_NAME
string "set fw path name"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
depends on ATBM_USE_FIRMWARE_BIN
default "atbm603x_fw_usb.bin" if (ATBM603x || WIFI4_ALL_CHIP)&& ATBM_USB_BUS
default "atbm603x__X_fw_usb.bin" if (ATBM6012B_y || WIFI4_ALL_CHIP)&& ATBM_USB_BUS
default "atbm613x_fw_usb.bin" if (ATBM6132 || WIFI4_ALL_CHIP)&& ATBM_USB_BUS
default "atbm603x_fw_usb.bin" if (ATBM603x || WIFI4_ALL_CHIP) && ATBM_SPI_BUS
default "atbm603x_fw_sdio.bin" if (ATBM603x || WIFI4_ALL_CHIP) && ATBM_SDIO_BUS
default "atbm603x__X_fw_sdio.bin" if (ATBM6012B_y || WIFI4_ALL_CHIP)&& ATBM_SDIO_BUS
default "atbm613x_fw_sdio.bin" if (ATBM6132 || WIFI4_ALL_CHIP)&& ATBM_SDIO_BUS
help
set name for wifi module
config ATBM_CONFIG_FILE
string "set tx dcxo config file path"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default "/tmp/atbm_txpwer_dcxo_cfg.txt"
help
set path for dcxo config file
config ATBM_RATE_POWER_CONFIG_FILE
string "set rate power config path"
depends on ATBM_MENUCONFIG || ATBM_APOLLO
default "/tmp/set_rate_power.txt"
help
set path for rate power config
config MAC80211_ATBM_RC_DEFAULT
string
default "minstrel_ht" if MAC80211_ATBM_RC_DEFAULT_MINSTREL && MAC80211_ATBM_RC_MINSTREL_HT
default "minstrel" if MAC80211_ATBM_RC_DEFAULT_MINSTREL
default "pid" if MAC80211_ATBM_RC_DEFAULT_PID
default ""
#comment "Some wireless drivers require a rate control algorithm"
# depends on MAC80211_ATBM_HAS_RC
menuconfig ATBM_BLE
bool "altobeam support ble module"
depends on (ATBM_MENUCONFIG || ATBM_APOLLO) && (ATBM6012B_y || WIFI4_ALL_CHIP || ATBM6132)
default n
help
need driver support ble,if just support say no
choice
prompt "Select which ble driver will use"
depends on ATBM_BLE
default ATBM_BLE_WIFI_PLATFORM
help
include use ble module or wifi coexist module,coexist module only support ble adv
config ATBM_BLE_WIFI_PLATFORM
bool "wifi driver will be support the ble stack app"
depends on ATBM_BLE
help
need insmod both wifi module and ble stackapp
config ATBM_ONLY_BLE_WIFI_PLATFORM
bool "Only ble coexistence is supported, not pure wifi"
depends on ATBM_BLE && (ATBM6012B_y || ATBM6132)
help
only request wifi module
#config ATBM_BLE_ADV_COEXIST
# bool "use wifi adv coexist module"
# depends on ATBM_BLE
# help
# only request wifi module
endchoice
config MAC80211_ATBM_NOINLINE
bool "Do not inline TX/RX handlers"
depends on MAC80211_ATBM_DEBUG_MENU
help
This option affects code generation in mac80211, when
selected some functions are marked "noinline" to allow
easier debugging of problems in the transmit and receive
paths.
This option increases code size a bit and inserts a lot
of function calls in the code, but is otherwise safe to
enable.
If unsure, say N unless you expect to be finding problems
in mac80211.
endif
endif