Commit Graph

19 Commits

Author SHA1 Message Date
Etan Cohen 067e1194a3 [WifiNl80211] Rename WifiNl80211Manager namespace
Finish the renaming process from wificond -> nl80211.

Bug: 149105833
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Test: system/connectivity/wificond/runtest.sh
Change-Id: Ia430e0c669758c46fca407723db30e076a018729
2020-02-15 17:37:33 -08:00
Etan Cohen 3c826e5a75 [wificond] Move to wificond namespace
Move the rest of the code to the wifi.wificond namespace from the
wifi namespace. Cleanup since wificond is outside the Wi-Fi module.

Non-functional change.

Bug: 140062898
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Test: ./system/connectivity/wificond/runtests.sh
Test: (CTS) atest android.net.wifi.cts
Change-Id: I257cabf92f0046214331616b381981f789933a87
2019-12-20 15:51:21 -08:00
Etan Cohen 5f173f58a9 wificond: transfer implementation to android.net.wifi
Move implementation of wificond to frameworks/base (android.net.wifi)
in prepration for making into a public API (which will be a wrapper
around the AIDL).

Bug: 140062898
Test: ./system/connectivity/wificond/runtests.sh
Test: associates, soft AP client information received correctly
Change-Id: I22f2e926f0320af9bda758b764d99b8d4a350674
2019-12-12 23:30:35 -08:00
lesl 414ba9c220 SoftAp: Revise callback onConnectedClientsChanged
New feature: Client control, i.e. MaxClient and Black/White List,
need to check client to decide allow it connect or force it disconnect.

Revise callback to 1 by 1, let framework accumulate the total number
of softap client.

Bug: 142752869
Test: Manual
Test: ./system/connectivity/wificond/runtests.sh
Change-Id: I902f7791dfd3295b3f61d06fb26d966e1654510a
2019-12-05 16:26:29 +08:00
James Mattis 39012048e4 Support for hotspot client visibility.
Adding support for visibility into the mac address of clients that connect to an active hotspot.

Bug: 137309578
Test: sh system/connectivity/wificond/./runtests.sh
Tested manually on a Hawk

Change-Id: I93924046c9631c589e30a8f6dacfb9558ca0c682
2019-11-27 20:09:22 -08:00
Etan Cohen 9ef85b7794 Revert "Moved from wificond AIDL to com.android.server.wifi.wificond"
This reverts commit d61114cd73.

Change-Id: I3adea9db600b44e10d3829e5cc96e644debac350
2019-11-27 20:09:17 -08:00
Etan Cohen fc5cbea4d7 Revert "Support for hotspot client visibility."
This reverts commit ec9f4aea99.

Change-Id: I1e15e2c96e6cf4e4134b8944717b717f738e5c32
2019-11-27 20:09:15 -08:00
James Mattis ec9f4aea99 Support for hotspot client visibility.
Adding support for visibility into the mac address of clients that connect to an active hotspot.

Bug: 137309578
Test: sh system/connectivity/wificond/./runtests.sh
Tested manually on a Hawk

Change-Id: I0845b51dc63c046df97e55bcc1c02c4610837453
2019-10-15 10:35:50 -07:00
David Su d61114cd73 Moved from wificond AIDL to com.android.server.wifi.wificond
Moved wificond AIDL from android.net.wifi to
com.android.server.wifi.wificond since android.net.wifi
should only be used for external APIs to apps.

Bug: 140062898
Test: ./runtest.sh
Change-Id: Ib7cf128ca584e1432073304aa77e8b78eaf663f1
2019-08-29 14:10:59 -07:00
Roshan Pius 1731b15fb0 wificond: Remove supplicant/hostapd start/stop
This is no longer needed since we'll be using the lazy HAL startup
mechanism provided by HIDL to start/stop supplicant.
Created a new method for registering the softap callbacks (previously
was a part of startHostapd. The callback will be removed when we
teardown the interface.

libwifi-system (HostapdManager & SupplicantManager) will be removed in
subsequent CL's once VTS tests migrates to the new mechanism.

Bug: 72394251
Bug: 30311493
Test: ./system/connectivity/wificond/runtests.sh
Test: Device boots up & connects to wifi networks.

Change-Id: If41d40af2970d0e09b0d73388fe4f7a0640cd52b
2018-06-19 11:28:32 -07:00
Mehdi Alizadeh 4332ce6abe Adds callback to report Soft AP channel and bandwidth
Bug: 72643031
Test: runtests.sh
Change-Id: I1c4943821919038b8ce211cc1b3b8b45c03970e0
2018-03-21 13:17:49 -07:00
Roshan Pius b376466398 wificond: Remove unused writeHostapdConfig() method
This functionality has been migrated to the HIDL interface. Remove dead
code from wificond.

Bug: 36646171
Test: ./system/connectivity/wificond/runtests.sh
Change-Id: I2c1a1b453b1c6566f6486041b292efb07f7ab9fa
2018-01-12 13:54:27 -08:00
mukesh agrawal 4b7b1c8235 Revert "Request Automatic Channel Selection"
This reverts commit 99ebcbd4bb.

Bug: 71878020
Test: ./runtests.sh (on walleye)
Test: manual

Manual test
-----------
- enable 5 GHz wifi hotspot from settings
$ adb logcat -d -b main hostapd '*:S' -e 'ACS' | wc -l
0
- verify that another phone shows walleye's softap in scan results

Change-Id: I43208bf09b70055eea3f96114bf2ecbcbb8cb60e
2018-01-12 05:20:32 +00:00
Ningyuan Wang 99ebcbd4bb Request Automatic Channel Selection
This changes the writeHostapdConfig() interface by replacing
|channel| with |band|.

Bug: 69065316
Test: runtests.sh (on walleye)
Test: manual
Test: wifi sanity (http://b/71636949)

Manual test
-----------
- enable wifi hotspot from settings
$ adb logcat -b main hostapd '*:S' -e 'ACS'
01-04 18:03:53.482  3040  3040 I hostapd : ACS: Automatic channel selection started, this may take a bit
01-04 18:03:53.482  3040  3040 I hostapd : ACS: Offloading to driver
01-04 18:03:53.827  3040  3040 I hostapd : nl80211: ACS Results: PCH: 6 SCH: 0 BW: 20 VHT0: 0 VHT1: 0 HW_MODE: 1
01-04 18:03:53.827  3040  3040 I hostapd : wlan0: ACS-COMPLETED freq=2437 channel=6

Change-Id: I89ed7d72ac4e02f3c6ad62affd61dc827cdd5d43
2018-01-09 18:11:06 +00:00
Mehdi Alizadeh d69e841f28 Adds a callback to call on num clients change
ApInterfaceBinder receives a callback on every startHostapd, to notify
the client everytime number of connected stations changes.

Bug: 68712260
Test: system/connectivity/wificond/runtests.sh
Change-Id: I7c9ddc648c330e63e439e737aa59a06354e121b4
2017-11-03 11:14:33 -07:00
Ningyuan Wang 9f0fd68f78 Add wificond API to expose number of associated stations
Bug: 31230864
Test: compile, unit tests, manual test
Change-Id: I28cc755a79c0fb3905a6684ea1281428a5bc2afc
2017-03-16 18:03:31 -07:00
Christopher Wiley 223dfaafe0 Add AIDL method to retrieve network interface name
This is necessary to watch for interface up/down events
in SoftApManager.

Bug: 31337216
Test: unit/integration tests pass
Test: upcoming integration tests use this method
Change-Id: I7d246b83058bd3d68970f3f72eeeb834d7dba309
2016-09-26 10:23:04 -07:00
Christopher Wiley 1f8dd4511d Control hostapd from IApInterface
Add AIDL interfaces, implementation, and tests to wificond.

Bug: 30040724
Test: unitests pass
Test: integration tests pass

Change-Id: I75339d64bf92941de26c7552b6b711cbea00eb80
2016-07-22 12:09:58 -07:00
Christopher Wiley f229bbe667 Expose IPC interfaces to create/destroy AP interfaces
Bug: 29579539
Change-Id: I49e050a6c806a5841931b1c2cddfbba7925f744a
Test: Unit, integration tests pass
2016-06-24 13:40:53 -07:00