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
41d88f06e7
Run codespell -w with the latest dictonary again
2020-02-23 07:10:14 -06:00
Xiang Xiao
d660492289
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:41:36 -06:00
chao.an
f28eca9dbc
Make.defs: Use complete include path
2020-02-19 12:56:10 -06:00
Masayuki Ishikawa
de4d52d465
wireless: gs2200m: Add support for setsockopt_request()
...
NOTE: Just check parameters and do nothing special
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-02-14 15:01:28 +08:00
Xiang Xiao
779197c63e
Ensure all source code end with one and only one newline
...
by this command:
git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2020-02-09 08:14:49 -06:00
Gregory Nutt
d2e1c8a4f3
apps/wireless/gs2200m/gs2200m_main.c: Eliminate a warning
...
Eliminate warning:
gs2200m_main.c: In function 'gs2200m_loop':
gs2200m_main.c:1416:1: warning: label 'errout' defined but not used [-Wunused-label]
2020-02-09 00:32:25 +01:00
Miguel Herranz
a5dff52a71
Change unimplemented requests behaviour in gs2200m
...
The ASSERT is too strong, as it cannot be disabled, so changing to
DEBUGASSERT, as calling these functions should not be a problem as
long as the application logic handle the error correctly.
The error code is changed to ENOSYS, as it seems to better reflect
the fact that the call itself would be valid, but the functionality
is not implemented (see [1] or `man errno`).
[1] https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html
2020-02-06 23:43:37 +01:00
YAMAMOTO Takashi
2f4b309b1b
gs2200m: Retry indefinately on GS2200M_IOC_ASSOC failure
...
Author: Alan Carvalho de Assis <engenharia03@siam.ind.br>
Run nxstyle again gs2200m_main.c file and fix issues
Author: YAMAMOTO Takashi <yamamoto@midokura.com>
gs2200m: Retry indefinately on GS2200M_IOC_ASSOC failure
The ioctl doesn't return why it failed.
It might or might not be a transient failure.
In my environment, gs2200m often returns the following for AT+WA.
It usually works after a few retries.
[ 12.110000] _parse_pkt_in_s1: +++++ 0:(msize=19, msg=WLAN CONNECT ERROR|)
[ 12.110000] _parse_pkt_in_s1: +++++ 1:(msize=6, msg=ERROR|)
2020-02-05 18:45:43 -03: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
Masayuki Ishikawa
e4af73ec56
wireless: gs2200m: Fix sendto_request() in gs2200m_main.c
...
Signed-off-by: Masayuki Ishikawa <<Masayuki.Ishikawa@jp.sony.com>
2020-01-28 10:35:50 +01: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
Masayuki Ishikawa
ebf666100a
apps: gs2200m: Remove unnecessary usleep() to improve throughput
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-01-21 16:03:41 +09: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
Xiang Xiao
857158451b
Unify the void cast usage
...
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro
Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08: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
31a7b99f9c
apps.: Remove the inappropriate NSH_BUILTIN_APPS coupling
...
1. Check NSH_NETINIT for self network initialization
2. Check NSH_ARCHINIT for sel arch specific initialization
3. Always show help regardless of NSH_BUILTIN_APPS
4. Loop forever regardless of NSH_BUILTIN_APPS, user could:
a.change the default behavior by the command line argument
b.or ctrl+c to break out the loop
2019-10-07 02:37:56 -06: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
Xiang Xiao
f7229b24fe
apps/wireless Makefiles: Utilize Directory.mk for consistency.
2019-10-01 11:56:42 -06:00
Xiang Xiao
9a27d4a697
Makefiles: Remove .PRECIOUS if Makefile doesn't touch libapps.
2019-10-01 11:48:55 -06:00
Masayuki Ishikawa
104d7f3716
Merged in masayuki2009/nuttx.apps/gs2200m_supports_SIOCGIFHWADDR (pull request #199 )
...
wireless/gs2200m/gs2200m_main.c: ioctl_request() supports SIOCGIFHWADDR
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-09-02 01:53:29 +00: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
Anthony Merlino
144a0180e2
Merged in antmerlino/apps/i8sak-eaddr2ip-fix (pull request #196 )
...
i8sak: Fixes conversion from extended address to IPv6 address.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-13 21:19:53 +00:00
Anthony Merlino
ba5b1c78da
Merged in antmerlino/apps/i8sak-energy-scan (pull request #195 )
...
wireless/ieee802154/i8sak: Adds support for energy scan result printout.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-13 21:19:29 +00:00
Anthony Merlino
c68dd23509
Merged in antmerlino/apps/i8shark_fcs_suppresion (pull request #194 )
...
i8shark: Adds support for intentionally suppressing passing the FCS so that Wireshark doesn't try to validate it.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 18:26:33 +00:00
Anthony Merlino
6228b43a72
Merged in antmerlino/apps/i8sak-seteppanid (pull request #193 )
...
i8sak: Allow setting the endpoint PAN ID
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 18:18:34 +00:00
Anthony Merlino
906f77a62d
Merged in antmerlino/apps/libmac_fcslen (pull request #192 )
...
wireless/ieee802154/libmac: Adds support for getting/setting the FCS length
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 18:17:54 +00:00
Anthony Merlino
401860c122
Merged in antmerlino/apps/i8sak-fix (pull request #191 )
...
wireless/ieee802154/i8sak: Fixes naming caused by naming change in nuttx
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 18:16:42 +00:00
Masayuki Ishikawa
1980c30738
Merged in masayuki2009/nuttx.apps/gs2200m_with_dhcp (pull request #189 )
...
wireless/gs2200m: Add dhcp client handlings in ioctl_request()
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-30 10:51:07 +00:00
Anthony Merlino
28f57f1007
Merged in antmerlino/apps/i8sak-improvements (pull request #188 )
...
I8sak improvements
* wireless/ieee802154: Adds support for getting/setting maxretries and promsicuous mode from i8sak
* wireless/ieee802154/i8sak: Fixes a build warning and handles a few cases where a fault can occur due to not catching missing arguments.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-26 01:54:30 +00:00
Masayuki Ishikawa
ff8d6aeed0
Merged in masayuki2009/nuttx.apps/gs2200m_with_udp (pull request #186 )
...
wireless/gs2200m: Add udp support to gs2200m_main.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-25 05:41:16 +00:00
Masayuki Ishikawa
2cd84d713c
Merged in masayuki2009/nuttx.apps/add_ch_setting (pull request #185 )
...
wireless/gs2200m: Add channel parameter for AP mode
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-10 11:34:09 +00:00
Gregory Nutt
334b450452
wireless/gs2200m/gs2200m_main.c: Fix a warning about an uninitialized return value found in build testing.
2019-06-29 18:50:20 -06:00
Masayuki Ishikawa
d2f3ad91e2
Merged in masayuki2009/nuttx.apps/wireless_gs2200m (pull request #177 )
...
apps/wireless/gs2200m: Moved from apps/system/gs2200m
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-27 00:54:19 +00:00
Anthony Merlino
c895593fc1
Merged in antmerlino/apps/i8sak-daemon-fixea (pull request #165 )
...
wireless/ieee802154/i8sak: Fixes issues related to re-running daemon. Releases lock when releasing daemon. Re-sets daemon_shutdown so that a subsequent daemon launch does not immediately return.
Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-13 14:19:43 +00:00
Lwazi Dube
a3c8f17522
apps/wireless/bluetooth/btsak/btsak_scan.c: Fix reversed address
2018-12-17 11:20:16 -06:00
Lwazi Dube
c8a252d4ed
apps/wireless/bluetooth/btsak: Remove unnecessary gatt get commands
2018-12-08 13:02:19 -06:00
Lwazi Dube
09a108b507
apps/wireless/bluetooth/btsak: Add connect and disconnect commands to btsak
2018-12-02 11:01:28 -06:00
Lwazi Dube
2b8685b63f
wireless/bluetooth/btsak/btsak_main.c: Fix address parsing
2018-11-30 06:28:36 -06:00
Lwazi Dube
6af45bdee0
wireless/bluetooth/btsak: Fix some errors in btsak
2018-11-27 08:02:43 -06:00
Lwazi
d927f50e79
apps/wireless/bluetooth/btsak: 'bt bnep0 info' outputs a reversed addr. It should print BDAddr: aa:bb:cc:dd:ee:ff instead of BDAddr: ff:ee:dd:cc:bb:aa
2018-11-25 09:54:09 -06:00
Anthony Merlino
1617e0dcf0
Merged in antmerlino/apps/i8sak-txpwr (pull request #159 )
...
wireless/ieee802154/i8sak: Adds support for getting/setting transmit power.
Approved-by: GregoryN <gnutt@nuttx.org>
2018-11-01 19:04:28 +00:00