No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mark Chien 27d9121ef3 Remove mWifiTetherRequested
Removing "mWifiTetherRequested" because it might cause Wi-Fi tethering
to not have an upstream if P2P is turned on. The issue could be
recovered when the upstream's capabilities or link properties change,
tethering calls "chooseUpstreamType" to select an upstream. If none of
the above situations happen, Wi-Fi tethering won't have an upstream.

1. When Wifi P2P is enabled and tethering enters TetherModeAliveState.
2. Turning on wifi tethering, TetherModeAliveState would first receive
   EVENT_IFACE_SERVING_STATE_INACTIVE when wifi tethering's IpServer
   is created and enters IpServer's InitialState. Then it will call
   updateUpstreamWanted and change mUpstreamWanted from false to true
   before wifi tethering's IpServer actually enters TetheredState.
3. When TetherModeAliveState receives EVENT_IFACE_SERVING_STATE_ACTIVE,
   which is triggered by wifi tethering's IpServer entering
   TetheredState, it won't call chooseUpstreamType() because
   mUpstreamWanted is already true.
   case EVENT_IFACE_SERVING_STATE_ACTIVE: {
       IpServer who = (IpServer) message.obj;
       if (VDBG) Log.d(TAG, "Tether Mode requested by " + who);
       handleInterfaceServingStateActive(message.arg1, who);
       who.sendMessage(IpServer.CMD_TETHER_CONNECTION_CHANGED,
               mCurrentUpstreamIfaceSet);
       // If there has been a change and an upstream is now
       // desired, kick off the selection process.
       final boolean previousUpstreamWanted = updateUpstreamWanted();
       if (!previousUpstreamWanted && mUpstreamWanted) {
           chooseUpstreamType(true);
       }

mWifiTetherRequested is only used to check upstreamWanted() and only be
used in TetherModeAliveState so that it is
safe to remove mWifiTetherRequested and always use mForwardedDownstreams
to check whether upstream is needed for TetherModeAliveState because all
the Tethered IpServer is added to mForwardedDownstreams when it enter
Tethered State and be removed from mForwardedDownstreams when it exit
Tethered State.

This change also move the upstreamWanted() function inside TetherMainSM
to prevent it from being used incorrectly outside of TetherMainSM.

Bug: 329552689
Test: atest TetheringTests

Change-Id: I6842170f455b280dd79aae039a1117d5e6d677f3
2024-03-26 08:08:01 +00:00
bpf_progs Merge "NetBpfLoad: enable mainline on T+" into main 2024-03-19 22:16:32 +00:00
clatd [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
common clat bpf: add byte/packet counter 2024-03-19 07:54:36 +00:00
Cronet Merge changes from topic "revert-3001326-revert-2998737-revert-2980591-cronet_121_0_6167_71-JBOUFGJXPX-ICXECJPUPA-OOMALUYYUV" into main 2024-03-20 13:39:16 +00:00
DnsResolver [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
framework Merge changes from topic "revert-3001326-revert-2998737-revert-2980591-cronet_121_0_6167_71-JBOUFGJXPX-ICXECJPUPA-OOMALUYYUV" into main 2024-03-20 13:39:16 +00:00
framework-t Improve documentation of addEthernetStateListener 2024-03-21 11:26:07 -07:00
nearby Test BluetoothFinderManager for SDK at least V 2024-03-02 22:11:44 +00:00
netbpfload NetBpfLoad: rework mainline bpf execution codepath 2024-03-19 21:45:21 +00:00
netd NetBpfLoad: rework mainline bpf execution codepath 2024-03-19 21:45:21 +00:00
remoteauth Replace use of deprecated logging functions 2024-02-05 07:47:42 +01:00
service Merge "Use connectivityHandler in CarrierPrivilegeAuthenticator" into main 2024-03-21 07:22:41 +00:00
service-t [mdns] restart probing/announcing the services on host address removal 2024-03-24 14:06:32 +00:00
staticlibs NetBpfLoad: enable mainline on T+ 2024-03-19 21:33:55 +00:00
tests [mdns] restart probing/announcing the services on host address removal 2024-03-24 14:06:32 +00:00
Tethering Remove mWifiTetherRequested 2024-03-26 08:08:01 +00:00
thread [mdns] support discovering and resolving services 2024-03-22 06:32:23 +00:00
tools Merge "Add tests to confirm that genjarjar keeps excluded Tests." into main 2024-03-14 10:20:01 +00:00
.gitignore Ignores vim temporary files from git 2023-12-23 17:45:32 +08:00
OWNERS Move the owner of xfrm netlink source code to its own directory. 2023-11-22 18:50:00 +09:00
OWNERS_core_networking OWNERS: remove ex-employees 2024-01-22 22:24:54 +00:00
OWNERS_core_networking_xts xTS OWNERS: allow maze to +2 APF fw CTS tests 2024-03-12 02:42:59 +00:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING Remove TrafficController 2023-11-07 20:25:24 +09:00