Lines Matching refs:result
118 int result = 0;
134 result = 1;
142 result = hfa384x_drvr_getconfig16(hw,
145 if (result) {
146 printk(KERN_ERR "getconfig(ROAMMODE) failed. result=%d\n",
147 result);
154 result = hfa384x_drvr_setconfig16(hw,
157 if (result) {
158 printk(KERN_ERR "setconfig(ROAMINGMODE) failed. result=%d\n",
159 result);
175 result =
178 if (result) {
204 result = hfa384x_drvr_getconfig16(hw, HFA384x_RID_PORTSTATUS, &word);
205 if (result) {
207 "result=%d\n", result);
215 result = hfa384x_drvr_setconfig16(hw,
218 if (result) {
220 "setconfig(ROAMINGMODE) failed. result=%d\n",
221 result);
231 result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFOWNSSID,
234 if (result) {
240 result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFDESIREDSSID,
243 if (result) {
250 result = hfa384x_drvr_setconfig16(hw,
253 if (result) {
260 result = hfa384x_drvr_setconfig16(hw,
263 if (result) {
269 result = hfa384x_drvr_enable(hw, 0);
270 if (result) {
272 "result=%d\n", result);
287 result = hfa384x_drvr_setconfig(hw,
290 if (result) {
291 printk(KERN_ERR "setconfig(SCANREQUEST) failed. result=%d\n",
292 result);
311 result = hfa384x_drvr_disable(hw, 0);
312 if (result) {
314 "result=%d\n", result);
322 result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFROAMINGMODE,
324 if (result) {
325 printk(KERN_ERR "setconfig(ROAMMODE) failed. result=%d\n",
326 result);
332 result = 0;
338 return result;
363 int result = 0;
377 result = 2;
389 result = 2;
394 item = &(hw->scanresults->info.hscanresult.result[req->bssindex.data]);
486 result = 0;
490 return result;
514 int result = 0;
547 result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFOWNSSID,
549 if (result) {
553 result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFDESIREDSSID,
556 if (result) {
567 result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFAPBCNint, word);
568 if (result) {
575 result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFOWNCHANNEL, word);
576 if (result) {
603 result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFBASICRATES, word);
604 if (result) {
632 result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFSUPPRATES, word);
633 if (result) {
638 result = hfa384x_drvr_setconfig16(hw, HFA384x_RID_TXRATECNTL, word);
639 if (result) {
652 result = hfa384x_drvr_enable(hw, 0);
653 if (result) {
654 printk(KERN_ERR "Enable macport failed, result=%d.\n", result);
662 pr_debug("Failed to set a config option, result=%d\n", result);
666 result = 0;
668 return result;
693 int result;
708 result = hfa384x_drvr_readpda(hw,
711 if (result) {
714 "result=%d\n", result);
875 int result = 0;
913 result = prism2sta_ifstate(wlandev, P80211ENUM_ifstate_fwload);
914 if (result != P80211ENUM_resultcode_success) {
916 "P80211ENUM_resultcode=%d\n", result);
919 result = -1;
1008 int result = 0;
1040 result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFDESIREDSSID,
1054 return result;
1078 int result = 0;
1091 result = 0;
1095 result = hfa384x_cmd_monitor(hw, HFA384x_MONITOR_DISABLE);
1096 if (result) {
1097 pr_debug("failed to disable monitor mode, result=%d\n",
1098 result);
1102 result = hfa384x_drvr_disable(hw, 0);
1103 if (result) {
1105 ("failed to disable port 0 after sniffing, result=%d\n",
1106 result);
1113 result = hfa384x_drvr_setconfig16(hw,
1116 if (result) {
1118 ("failed to restore wepflags=0x%04x, result=%d\n",
1119 hw->presniff_wepflags, result);
1126 result = hfa384x_drvr_setconfig16(hw,
1129 if (result) {
1131 ("failed to restore porttype, result=%d\n",
1132 result);
1137 result = hfa384x_drvr_enable(hw, 0);
1138 if (result) {
1140 ("failed to enable port to presniff setting, result=%d\n",
1141 result);
1145 result = hfa384x_drvr_disable(hw, 0);
1151 result = 0;
1159 result = hfa384x_drvr_getconfig16(hw,
1162 if (result) {
1164 ("failed to read porttype, result=%d\n",
1165 result);
1169 result = hfa384x_drvr_getconfig16(hw,
1172 if (result) {
1174 ("failed to read wepflags, result=%d\n",
1175 result);
1179 result = hfa384x_drvr_start(hw);
1180 if (result) {
1182 ("failed to restart the card for sniffing, result=%d\n",
1183 result);
1188 result = hfa384x_drvr_disable(hw, 0);
1189 if (result) {
1191 ("failed to enable port for sniffing, result=%d\n",
1192 result);
1202 result = hfa384x_drvr_setconfig16(hw,
1207 if (result) {
1208 pr_debug("failed to set channel %d, result=%d\n",
1209 word, result);
1217 result = hfa384x_drvr_setconfig16(hw,
1220 if (result) {
1222 ("failed to set porttype %d, result=%d\n",
1223 word, result);
1233 result =
1239 if (result) {
1241 ("failed to set wepflags=0x%04x, result=%d\n",
1242 word, result);
1264 result = hfa384x_drvr_enable(hw, 0);
1265 if (result) {
1267 ("failed to enable port for sniffing, result=%d\n",
1268 result);
1272 result = hfa384x_cmd_monitor(hw, HFA384x_MONITOR_ENABLE);
1273 if (result) {
1274 pr_debug("failed to enable monitor mode, result=%d\n",
1275 result);
1300 result = 0;
1305 result = 0;
1312 result = 0;
1314 return result;