Commit Graph

220 Commits

Author SHA1 Message Date
Brennan Ashton
75690bc31e Pin Nible release to working commit until stable tag is ready 2021-02-16 09:08:37 +00: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
Huang Qi
3040c59ae9 Replace all wget with curl
wget is missing from some system (like macOS and Windows native),
it's better to use curl to simplify build environment.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-12-21 22:45:46 -06:00
Matias N
ca64cefc91 nimble: fix wrong git ref name to use 2020-12-18 08:56:27 -06:00
Matias N
b97395dee1 nimble: point to upstream, improve Makefile 2020-12-17 20:42:48 -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
chao.an
fe915679b1 style/Document: remove unnecessary trailing whitespace
N/A

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:10 +01:00
chao.an
b5692d8034 style/code: remove unnecessary trailing whitespace
N/A

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-28 12:20:10 +01:00
YAMAMOTO Takashi
aea1ba9f5f wireless/wapi/src/driver_wext.c: Fix a syslog format 2020-11-20 22:24:29 -08:00
YAMAMOTO Takashi
75758c17b4 wireless/bluetooth/btsak/btsak_gatt.c: Fix a printf format warning 2020-11-13 05:51:23 -08:00
YAMAMOTO Takashi
e18fe2050f wireless/bluetooth/btsak/btsak_gatt.c: Appease nxstyle 2020-11-13 05:51:23 -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
Masatoshi Ueno
0f4ad7dc5f gs2200m: Add function to get IWNWID / IWFREQ / IWSENS information
Summary:
- This commit enables gs2200m application to get IWNWID/IWFREQ/IWSENS information

Impact:
- Affects gs2200m only

Testing:
- Tested with spresense:wifi
2020-11-02 19:59:09 +09:00
Matias N
fcc485cc7a nimBLE integration application/library 2020-10-31 13:04:57 -07:00
Masayuki Ishikawa
909eff540d wireless: gs2200m: Add support for ioctl(fd, SIOCGIFADDR, ...)
Summary:
- This commit adds support for ioctl(fd, SIOCGIFADDR, ...) to gs2200m_main.c

Impact:
- Only affects ioctl(fd, SIOCGIFADDR, ...) with gs2200m
- Need to update nuttx as well

Testing:
- Tested with spresense:wifi
- Tested with dhcpc

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 12:42:03 +01:00
Masayuki Ishikawa
b71c5f8cb1 wireless: gs2200m: Implement getpeername_request()
Summary:
- This commit adds getperrname_request() to gs2200m_main.c

Impact:
- Affects gs2200m only
- Need to update nuttx as well

Testing:
- Tested with spresense:wifi
- Modify telnetd and add getpeername() to show a client address

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 12:42:03 +01:00
Masayuki Ishikawa
0e9594e107 wireless: gs2200m: Fix to handle address info in accept()
Summary:
- This commit fixes to handle address info in accept()

Impact:
- All use cases which use accept() with gs2200m
- Need to update nuttx as well

Testing:
- Tested with spresene:wifi
- Tested with telnet daemon

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 12:42:03 +01:00
Masayuki Ishikawa
196b1f06df wireless: gs2200m: Fix to handle UDP connect() with bind()
Summary:
- This commit fixes to handle UDP connect() with bind() to local port
- NOTE: GS2200M does not support TCP connect() with bind to local port

Impact:
- All UDP cases which use connect() with gs2200m
- Need to update nuttx as well

Testing:
- Tested with spresense:wifi
- Create a UDP socket and bind() to local port.
- Then connect() to remote address with port and send()

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-26 12:42:03 +01: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
Masayuki Ishikawa
f4b0f9e290 wireless: gs2200m: Fix recvfrom_reques() in gs2200m_main.c
Summary:
- During Wi-Fi stress test, I noticed ASSERT happens in gs2200m_main.c
- Actually, req->max_buflen was 0 but the case was not handled correctly
- This commit fixes this issue

Impact:
- Affects read/recvfrom with len=0 cases

Testing:
- Tested with spresense:wifi_smp
- Run nxplayer for audio streaming
- Run ps/free/ifconfig commands via telnet
- Run smp command via telnet

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-10-09 08:47:14 +02: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
Brennan Ashton
d38351cfd0 nxstyle: Fixup existing long lines 2020-08-29 14:04:44 -06:00
Brennan Ashton
14c6d976fc Bluetooth: Use the new l2cap socket address type 2020-08-29 14:04:44 -06:00
SPRESENSE
4e1a22428a wireless/gs2200m/gs2200m_main.c: Add passing MSG flags
Add passing MSG_* flags for gs2200m driver.
2020-08-06 20:52:09 +09:00
Masayuki Ishikawa
faec1f8614 wireless: gs2200m: Replace license header with Apache License 2.0
Summary:
- This commit replaces license headers under wireleass/gs2200m.

Impact:
- No impact

Testing:
- Buid check only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-29 01:05:31 -05:00
SPRESENSE
f8354b0c03 wireless/gs2200m: Fix freeing uninitialized memory
Add initialize local variable and check the buffer is allocated before free().
2020-07-28 09:46:09 +02: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
Masayuki Ishikawa
13479e0a8c wireless: gs2200m: Update help messages in gs2200m_main.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-22 10:30:16 +02: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
Masayuki Ishikawa
e2414cd731 wireless: gs2200m: Fix to receive a big packet
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-18 09:44:37 +02:00
Masayuki Ishikawa
f3934ec6d8 wireless: gs2200m: Add support for getsockname() to gs2200m
NOTE: need to update nuttx repo as well

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 07:50:16 -06:00
Masayuki Ishikawa
06e74202b5 wireless: gs2200m: Fix to release a bound socket
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-04-30 20:17:26 +08:00
Gregory Nutt
fcc688e771 wireless/bluetooth/btsak/btsak_security.c: Fix long lines for nxstyle. 2020-04-29 17:50:24 +01:00
Gregory Nutt
9e5d57f492 wireless/bluetooth/btsak/btsak_security.c: Fix newline character
Inspired by Abdelatif's find, here are other cases where /n was used when \n ws intended
2020-04-29 17:50:24 +01:00
Masayuki Ishikawa
efcbd2d842 wireless: gs2200m: Fix nxstyle warnings in gs2200m_main.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-04-14 11:22:10 +02:00
Masayuki Ishikawa
c126732799 wireless: gs2200m: Add support for UDP connect in gs2200m_main.c
NOTE: gs2200m driver needs to be updated as well

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-04-14 11:22:10 +02: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