Re: Add WPS information parsing in foreach_property_cb
- From: Sheng-Jhih Jiang <awkjiang gmail com>
- To: Dan Williams <dcbw redhat com>, networkmanager-list gnome org
- Subject: Re: Add WPS information parsing in foreach_property_cb
- Date: Thu, 5 Feb 2015 22:36:29 +0800
Yes, I really need some instructions to decrease the time for
understanding the behavior between NM and wpa_supplicant.
In my plan, I will try to add the easiest scenario first:
i. press the pbc on AP
ii. NM trigger scan to know the AP is ready for WPS via PBC method
iii. NM trigger the wpa_supplicant to start the PBC action
vi. the connection between STA(NM) and AP is constructed
With the WPS patch in the first email, I believe that if the user
trigger a scan in
NM after the pbc of an AP is pressed, NM will know there is an AP ready for WPS.
But in iii), I don't know when the user select an AP to connect on the
nm-applet, where is the corresponding function call
in NM. I am trying to figure out the flow of triggering the
wpa_supplicant to connect to the selected AP from NM.
BTW, I think I must modify network-manager-applet for testing WPS, but
I also met some problems while building network-manager-applet.
I already built and installed NetworkManage 1.1.0 obtained from git
master branch.
When I want to build network-manager-applet, some errors shows as below.
I found that these function prototypes in NetworkManager were
controlled by "NM_AVAILABLE_IN_0_9_10"
But the version of NM I installed was 1.1.0, it's even newer than
0.9.10, I don't know why these errors occurred.
"
make[4]: Entering directory `/home/awkjiang/temp/network-manager-applet/src'
CCLD nm-applet
nm_applet-applet.o: In function `get_device_class':
/home/awkjiang/temp/network-manager-applet/src/applet.c:280: undefined
reference to `nm_device_team_get_type'
nm_applet-applet.o: In function `applet_find_active_connection_for_device':
/home/awkjiang/temp/network-manager-applet/src/applet.c:1420:
undefined reference to `nm_active_connection_get_vpn'
nm_applet-applet.o: In function `get_device_class':
/home/awkjiang/temp/network-manager-applet/src/applet.c:280: undefined
reference to `nm_device_team_get_type'
/home/awkjiang/temp/network-manager-applet/src/applet.c:280: undefined
reference to `nm_device_team_get_type'
/home/awkjiang/temp/network-manager-applet/src/applet.c:280: undefined
reference to `nm_device_team_get_type'
/home/awkjiang/temp/network-manager-applet/src/applet.c:280: undefined
reference to `nm_device_team_get_type'
/home/awkjiang/temp/network-manager-applet/src/applet.c:280: undefined
reference to `nm_device_team_get_type'
nm_applet-applet.o:/home/awkjiang/temp/network-manager-applet/src/applet.c:280:
more undefined references to `nm_device_team_get_type' follow
nm_applet-applet-dialogs.o: In function `info_dialog_add_page_for_vpn':
/home/awkjiang/temp/network-manager-applet/src/applet-dialogs.c:854:
undefined reference to `nm_active_connection_get_ip4_config'
/home/awkjiang/temp/network-manager-applet/src/applet-dialogs.c:870:
undefined reference to `nm_active_connection_get_ip6_config'
nm_applet-applet-device-vlan.o: In function `find_device_by_mac':
/home/awkjiang/temp/network-manager-applet/src/applet-device-vlan.c:65:
undefined reference to `nm_utils_hwaddr_ntoa_len'
collect2: error: ld returned 1 exit status
make[4]: *** [nm-applet] Error 1
make[4]: Leaving directory `/home/awkjiang/temp/network-manager-applet/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/awkjiang/temp/network-manager-applet/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/awkjiang/temp/network-manager-applet/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/awkjiang/temp/network-manager-applet'
make: *** [all] Error 2
"
On Tue, Jan 27, 2015 at 11:43 PM, Dan Williams <dcbw redhat com> wrote:
On Sun, 2015-01-25 at 21:36 +0800, Awk Jiang wrote:
Hi all,
I start working on adding WPS function into NM. At the beginning, I
add the WPS information during foreach_property_cb as the patch.
Because I am foreign to contribute code in community, please feel free
to give me any suggestion. Thanks.
This looks good, thanks! Do you need/want some pointers on where to go
from here?
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]