Alin Jerpelea
11cd9beb9b
wireless: migrate to SPDX identifier
...
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2024-12-30 18:02:50 +08:00
lipengfei28
f15ed311c0
wapi_json_load: the buf need add null character
...
sched_backtrace+0xd4/0xfffffffffff444e0
sched_dumpstack+0x5c/0xc50a0
_assert+0x1a0/0x11cf380
__assert+0x28/0x4ebd70
kasan_report+0x280/0x5b0
__asan_loadN+0x234/0xfffffffffffffac0
strlen+0x3c/0x838410
cJSON_Parse+0x38/0x1d0
wapi_json_load+0xc4/0x1c0
wapi_load_config+0x50/0x110600
netinit_associate+0x34/0xfffffffffffffe70
netinit_thread+0xbc/0x18ad0
pthread_startup+0x34/0x11660a0
pthread_start+0x84/0xfffffffffeea2520
If the buf no null character, the strlen acces buf maybe out of bounds
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-11 19:26:44 +08:00
meijian
7bf20f1a89
[wireless] add set/get pmksa api for fast-auth
...
Signed-off-by: meijian <meijian@xiaomi.com>
2024-09-12 12:43:52 +08:00
wangchen
4940303bd8
util.c:Add mode when creating files in the wapi_save_config
...
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2024-08-21 01:28:29 +08:00
Xiang Xiao
c45a7c8ccd
wireless/wapi: Return -errno in all fail path
...
to avoid some return -1, otheer return -errno
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-31 10:41:09 +02:00
zhanghongyu
dc90c52413
wapi: fix passphrase can not update if prefix is same
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-11-20 07:45:15 +01:00
zhanghongyu
8fe295de32
wireless: Add ioctl cmd to setting PTA prio
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-08-18 11:48:23 +08:00
zhanghongyu
8c8ebf4503
wapi: fix coverity warning
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-08-15 22:27:59 +08:00
chao.an
92c001bbc0
wapi/utils: add SIOCGIWSENS into string name list
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-17 16:44:01 +08:00
Xiang Xiao
66dbaa4539
Replace self defined macros with NET_SOCK_[FAMILY|TYPE|PROTOCOL]
...
NET_SOCK_* is defined by nuttx/net/netconfig.h and then can be shared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-20 16:04:29 -03:00
zhanghu
4808fb4d0d
apps warning: add ether_h because Wimplicit-function-declaration
...
Change-Id: Ic3b86ef2d8f83a80e0cc7badba22006a8fd8b2ee
2021-06-14 14:31:40 -03:00
chao.an
e4cddb169a
wapi/conf: convert mac address
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-12 00:24:22 -06:00
Xiang Xiao
8a63e58936
Change all 'Nuttx' to 'NuttX'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 22:27:57 -07:00
chao.an
3061dbf2f8
wireless/wapi: add option to associate with bssid
...
Change-Id: I68ef42edfc50ef5baf0f02a570d0e7f79669659f
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-09-19 04:20:43 -07:00
chao.an
7cb5bc3b76
wapi: fix nxstyle warning
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 13:29:19 +01:00
chao.an
df1d0e73f8
wireless/wapi: add save_config/reconnect support
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 13:29:19 +01:00
chao.an
52ad01f0bf
netutils: save wapi config to file system
...
save and reload the wapi config from file system
2020-02-26 16:11:46 +00:00
Gregory Nutt
a0915850b9
wireless/wapi: wpa_driver_wext_associate() now accepts a configuration parameter that can be used to specify the wireless properties. nshlib: NSH now has configuration options to select the wireless properties. It builds the configuration structure and passes this to wpa_driver_wext_associate() so that it will setwork the network as configured.
2017-05-06 11:28:11 -06:00
Gregory Nutt
568e932e80
apps/wireless/wapi: Some changes from initial debug.
2017-04-11 12:42:15 -06:00
Gregory Nutt
322ffe193b
wireless/wapi: Remove functionality that depends on the Linux procfs: This includes only 1) listing of available interfaces and 2) listing of all routes.
2017-04-10 16:02:17 -06:00
Gregory Nutt
aeb37c12b2
apps/wireless/wapi: Fix problems in build support. Fix some initial compile isses (still does not compile).
2017-04-10 14:57:33 -06:00
Gregory Nutt
eeb143415a
wireless/wapi: Quick port of Wapi wireless services. No build support yet. This also depends on features not supported by NuttX. This is a work in progress.
2017-04-10 13:28:32 -06:00