Tethering gets invoked when WifiService notices the softAP interface is available. That interface only is created when the softAP driver is started. So Wifi is on the hook to start up and configure the softAP. Once that is done it tells the tethering service to tether that interface - the tethering service works to create the proper upstream connection, starts up dhcp and dns services if needed and does the iptables work to complete the connection.
R On Fri, Oct 29, 2010 at 5:52 AM, Thiru <thirumalai.andr...@gmail.com> wrote: > Hi Robert, > I just want to know when the Tethering service will getting > invoked for portable hotspot? > > I just try to understand how the tethering service playing a role on > portable hotspot. How the sendTetherStateChangedBroadcast() private function > is getting invoked. I am seeing some registration with Network management. I > guess the network management code will in turn communicate with kernel. If > any changes on the interface on the network interface [like network > interface registration with linux kernel] then kernel will raise the event. > -Thiru > > > > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting