Adding a new interface in Android O

35 views
Skip to first unread message

Shayak Biswas

unread,
Sep 20, 2018, 1:56:46 AM9/20/18
to Android Query
Hello,

I face a dilema here on my way to create a new interface for Wifi

Let me explain step by step :

1) There are a number of interfaces present in ISupplicantStaIface.hal which resides under /hardware/interfaces/wifi/supplicant/1.0/ISupplicantStaIface.hal


2) Now, these functions are present under 
     external/wpa_supplicant/hidl/1.0/sta_iface.h ( The prototype)
     external/wpa_supplicant/hidl/1.0/sta_iface.cpp ( This has the definition)

3) These functions can now be used by upper layers say : 
     SupplicantStaIfacehal.java , WifiNative.java etc.

My assumption is : When we have interfaces in the ISupplicantStaIface.hal, we tend to generate .h and .cpp files in which we can put our definitions
and proceed further so that the upper layers can use it.

(Please correct me if I am wrong here)

Now, to add a new interface, I created a new folder under the wifi/supplicant/1.1
( We just cannot add in the existing 1.0 implementation, we need to extend ex: interface ISupplicantStaIface extends @1.0::ISupplicantStaIface)

Now, the matter of fact is, from here , I am not able to add this new interface in the existing files sta_iface.h and sta_iface.cpp.
Because when I try to manually generate the files from ISupplicantStaIface.hal, I get new files named SupplicantStaIface.cpp and SupplicantStaIface.h
But I want my changes to appear in sta_iface.h and sta_iface.cpp.
sta_iface.h and sta_iface.cpp
Can someone throw some light on this.

In previous android versions, the communication use to happen via DoBoolean command which is being changed now

Please respond to this query as this is a huge blocker

Thanks
Shayak


Reply all
Reply to author
Forward
0 new messages