Lines Matching refs:RoamCommand
20 #include "roamcommand.h"
23 RoamCommand::RoamCommand(wifi_handle handle, int id, u32 vendor_id, u32 subcmd)
28 RoamCommand::~RoamCommand()
33 wifi_error RoamCommand::create() {
52 wifi_error RoamCommand::requestResponse()
63 RoamCommand *roamCommand;
82 roamCommand =
83 new RoamCommand(wifiHandle,
87 if (roamCommand == NULL) {
88 ALOGE("%s: Error roamCommand NULL", __FUNCTION__);
93 ret = roamCommand->create();
98 ret = roamCommand->set_iface_id(ifaceInfo->name);
103 nlData = roamCommand->attr_start(NL80211_ATTR_VENDOR_DATA);
107 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD,
112 ret = roamCommand->put_u32( QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID, id);
116 ret = roamCommand->put_u32(
122 nlBssids = roamCommand->attr_start(
125 struct nlattr *nl_ssid = roamCommand->attr_start(i);
127 ret = roamCommand->put_addr(
133 roamCommand->attr_end(nl_ssid);
135 roamCommand->attr_end(nlBssids);
137 roamCommand->attr_end(nlData);
139 ret = roamCommand->requestResponse();
144 delete roamCommand;
154 RoamCommand *roamCommand;
162 roamCommand = new RoamCommand(
167 if (roamCommand == NULL) {
168 ALOGE("%s: Failed to create object of RoamCommand class", __FUNCTION__);
173 ret = roamCommand->create();
180 ret = roamCommand->set_iface_id(ifaceInfo->name);
187 nlData = roamCommand->attr_start(NL80211_ATTR_VENDOR_DATA);
192 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD,
196 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID, id);
199 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
204 nlSsids = roamCommand->attr_start(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST);
206 struct nlattr *nl_ssid = roamCommand->attr_start(i);
212 ret = roamCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID,
219 roamCommand->attr_end(nl_ssid);
221 roamCommand->attr_end(nlSsids);
223 roamCommand->attr_end(nlData);
225 ret = roamCommand->requestResponse();
230 delete roamCommand;
311 RoamCommand *roamCommand;
333 roamCommand =
334 new RoamCommand(wifiHandle,
338 if (roamCommand == NULL) {
339 ALOGE("%s: Failed to create object of RoamCommand class", __FUNCTION__);
344 ret = roamCommand->create();
351 ret = roamCommand->set_iface_id(ifaceInfo->name);
358 nlData = roamCommand->attr_start(NL80211_ATTR_VENDOR_DATA);
364 ret = roamCommand->put_u32(QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY, policy);
370 roamCommand->attr_end(nlData);
372 ret = roamCommand->requestResponse();
377 delete roamCommand;