Xiang Xiao
2fc7c67031
wireless/wapi: Fix warning: 'strncpy' specified bound 16 equals destination size
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-22 08:35:58 +02:00
zhanghongyu
e0e41c5d7f
feature: wapi add encode parse when scan
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-03-15 18:01:04 +08:00
Petro Karashchenko
f9baa422c1
style: unify path to files in comment section
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-09 10:37:33 +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
liuyang34
ab3cca4ae1
wapi: add 5g channel map in wapi
...
Signed-off-by: liuyang34 <liuyang34@xiaomi.com>
2021-09-24 13:48:47 +08:00
zhanghu
4808fb4d0d
apps warning: add ether_h because Wimplicit-function-declaration
...
Change-Id: Ic3b86ef2d8f83a80e0cc7badba22006a8fd8b2ee
2021-06-14 14:31:40 -03:00
Alin Jerpelea
ec339bc49a
Makefiles: Gregory Nutt: update licenses to Apache
...
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Nathan Hartman
6d3782c961
Licensing: Move wireless/wapi/LICENSE into top-level LICENSE
2021-05-06 19:14:13 -07:00
Abdelatif Guettouche
fbf5290401
wireless/wapi/src/wapi.c: When executing a command return it's error code on failure.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-04-12 22:29:01 -05:00
chenwen
39c5fa812d
wireless/wapi: Fix issue of getting the operating frequency
2021-04-12 03:56:11 -05:00
chao.an
623a668baa
wapi: Extend "WAPI_ESSID_DELAY_ON" flag to support customized connection behavior
...
The current essid setting(SIOCSIWESSID) are not satisfactory in case
of specified bssid connection, if there are multiple essids with same name,
we need additional bssid information to connect to the specified softap.
The extended flag "WAPI_ESSID_DELAY_ON" instructs the driver to delay the
connection behavior of essid, so that which can accept more accurate
information before generating a connection.
About flow of wapi command, drivers that support WAPI_ESSID_DELAY_ON semantics
will have the following behavior changes:
1. Station mode without bssid set:
$ ifup wlan0
$ wapi mode wlan0 2
$ wapi psk wlan0 12345678 3
$ wapi essid wlan0 archer 1
$ renew wlan0
2. Station mode with bssid set:
$ ifup wlan0
$ wapi mode wlan0 2
$ wapi psk wlan0 12345678 3
$ wapi essid wlan0 archer 2 <----- WAPI_ESSID_DELAY_ON will indicate the driver delay
$ the connection event late to bssid set (SIOCSIWAP).
$ wapi ap wlan0 ec:41:18:e0:76:7e
$ renew wlan0
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-30 20:19:10 -08:00
chao.an
a53f2ad270
wireless/wapi: add get sensitivity command
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-29 07:59:48 +00:00
chao.an
bd9174a3b6
wireless/wapi: add set country code support
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-05 08:00:29 +01:00
YAMAMOTO Takashi
e44268c484
wireless/wapi: Fix the usage message
2020-12-21 23:27:26 -06: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
chao.an
c014504a93
wireless/wapi: do not associate with essid/bssid at same time
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-30 05:47:19 -06:00
YAMAMOTO Takashi
aea1ba9f5f
wireless/wapi/src/driver_wext.c: Fix a syslog format
2020-11-20 22:24:29 -08:00
chao.an
937b67bfa0
wapi/wireless: add get sensitivity support
...
Change-Id: I9906810466edaad59edf3d63b534959541609aab
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-10 19:37:29 -08:00
chao.an
3959f7535e
wireless/wapi: add channel frequency set during associate
...
Therefore, the associate can support the connection of specified
channel if the scan results contain the multiple AP with same essids.
Change-Id: I4e657c52e638693e7ae19aea2a4fe8a431885547
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-10 19:36:17 -08:00
Xiang Xiao
8375a2177e
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-18 22:27:57 -07: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
a0f6b14c0d
wireless/wapi: add scan partial channel support
...
Change-Id: I2279406a9ca0cc3a9535ce79fbf651dbaf14ad4c
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-09-19 01:14:45 -07:00
chao.an
40f559bffc
wireless/wapi: ignore the fail case
...
do not break the show process if some cases failure
Change-Id: I5d5768ba116a9e8a8ea62ae9455d773838328bd5
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-09-19 01:12:04 -07:00
Maciej Wójcik
21049ece6e
Rewritten READMEs to Markdown
2020-07-25 01:01:51 -07:00
Maciej Wójcik
51e6645f71
Rename README and README.txt to README.md
2020-07-25 01:01:51 -07:00
Xiang Xiao
deaa6c5b7b
build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
...
and move NUTTXLIB defintion to the common place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
Xiang Xiao
69f013e74e
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
Xiang Xiao
ead498a788
build: Remove the workaround for the inexistence of .config/Make.defs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
6a26547dec
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06: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
6bafe90db4
wireless/wapi: independent scan and scan_results
...
add scan <ssid> support
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 13:29:19 +01:00
YAMAMOTO Takashi
e7156be066
Change the defaults of stack size configs to DEFAULT_TASK_STACKSIZE
...
This commit changes only ones with the default 2048 and
leaves the others.
E.g. this leaves SYSTEM_RAMTEST_STACKSIZE, whose default is 1024.
I guess those need to be inspected one-by-one.
2020-03-27 02:43:11 -05:00
Xiang Xiao
1511403fdf
Revert "Don't generate .depend anymore"
...
This reverts commit cc5ad09caa
.
2020-03-22 23:09:40 -05:00
Xiang Xiao
cc5ad09caa
Don't generate .depend anymore
2020-03-22 18:15:21 +00: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
chao.an
ee615f0568
net/wapi: remove unnecessary cast
2020-02-26 16:11:39 +00:00
Xiang Xiao
d660492289
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:41:36 -06:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
chao.an
7612221df6
apps/wireless/wapi/scan: Add frequency/rssi printf
...
Scan print layout:
nsh> wapi scan wlan0
bssid / frequency / signal level / ssid
**:**:**:**:**:** 2437 -38 <ssid>
**:**:**:**:**:** 2427 -36 <ssid>
...
2020-01-22 07:53:02 -06:00
Xiang Xiao
6d22dd0013
Author: Gregory Nutt <gnutt@nuttx.org>
...
Run all .c and .h files in last PR through nxstyle and fix all complaints.
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Wapi improvement (#16 )
* wireless: add passphrase control
* wireless: add disconnect control
2020-01-16 12:21:45 -06:00
Gregory Nutt
64bc8f5b7f
Run all .c and .h files modified in last PR through nxstyle.
2019-12-31 10:57:34 -06:00
Xiang Xiao
49c997501a
Wapi simplify ( #1 )
...
apps/wireless/wapi: Simplify usage of command line. Remove duplicate extensions
2019-12-31 10:39:53 -06:00
Gregory Nutt
438777cd38
netutils/netlib/netlib_getroute.c: Add function to retrieve routing tables using netlink.
2019-11-10 12:36:34 -06:00
Xiang Xiao
7808eb62d2
apps/: In all Make.def files, append to CONFIGURED_APPS patch with the absolute path.
2019-10-17 11:33:59 -06:00
Gregory Nutt
3a23523147
Makefiles: This reverts part of commit cf0365ea9
. It restores 'conditional' inclusion of TOPDIR/Make.defs. Otherwise all make targets fail if the board has not been configured. That is okay most of the time, but not for things like clean and distclean which should not depend on being configured.
2019-10-15 09:25:48 +08:00
Xiang Xiao
e806097c70
Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard.
2019-10-06 06:14:56 -06:00
Xiang Xiao
cf0365ea92
Clean up Makefile under apps folder no functional changes.
2019-10-04 08:35:46 -06:00
Nathan Hartman
3a75edca20
Fix minor typo/copy-paste: 'will be use when'->'will be used when'
2019-08-23 11:59:28 -06:00