| .. | .. |
|---|
| 288 | 288 | int result = 0; |
|---|
| 289 | 289 | |
|---|
| 290 | 290 | switch (msg->msgcode) { |
|---|
| 291 | | - case DIDmsg_dot11req_mibget: |
|---|
| 291 | + case DIDMSG_DOT11REQ_MIBGET: |
|---|
| 292 | 292 | pr_debug("Received mibget request\n"); |
|---|
| 293 | 293 | result = prism2mgmt_mibset_mibget(wlandev, msg); |
|---|
| 294 | 294 | break; |
|---|
| 295 | | - case DIDmsg_dot11req_mibset: |
|---|
| 295 | + case DIDMSG_DOT11REQ_MIBSET: |
|---|
| 296 | 296 | pr_debug("Received mibset request\n"); |
|---|
| 297 | 297 | result = prism2mgmt_mibset_mibget(wlandev, msg); |
|---|
| 298 | 298 | break; |
|---|
| 299 | | - case DIDmsg_dot11req_scan: |
|---|
| 299 | + case DIDMSG_DOT11REQ_SCAN: |
|---|
| 300 | 300 | pr_debug("Received scan request\n"); |
|---|
| 301 | 301 | result = prism2mgmt_scan(wlandev, msg); |
|---|
| 302 | 302 | break; |
|---|
| 303 | | - case DIDmsg_dot11req_scan_results: |
|---|
| 303 | + case DIDMSG_DOT11REQ_SCAN_RESULTS: |
|---|
| 304 | 304 | pr_debug("Received scan_results request\n"); |
|---|
| 305 | 305 | result = prism2mgmt_scan_results(wlandev, msg); |
|---|
| 306 | 306 | break; |
|---|
| 307 | | - case DIDmsg_dot11req_start: |
|---|
| 307 | + case DIDMSG_DOT11REQ_START: |
|---|
| 308 | 308 | pr_debug("Received mlme start request\n"); |
|---|
| 309 | 309 | result = prism2mgmt_start(wlandev, msg); |
|---|
| 310 | 310 | break; |
|---|
| 311 | 311 | /* |
|---|
| 312 | 312 | * Prism2 specific messages |
|---|
| 313 | 313 | */ |
|---|
| 314 | | - case DIDmsg_p2req_readpda: |
|---|
| 314 | + case DIDMSG_P2REQ_READPDA: |
|---|
| 315 | 315 | pr_debug("Received mlme readpda request\n"); |
|---|
| 316 | 316 | result = prism2mgmt_readpda(wlandev, msg); |
|---|
| 317 | 317 | break; |
|---|
| 318 | | - case DIDmsg_p2req_ramdl_state: |
|---|
| 318 | + case DIDMSG_P2REQ_RAMDL_STATE: |
|---|
| 319 | 319 | pr_debug("Received mlme ramdl_state request\n"); |
|---|
| 320 | 320 | result = prism2mgmt_ramdl_state(wlandev, msg); |
|---|
| 321 | 321 | break; |
|---|
| 322 | | - case DIDmsg_p2req_ramdl_write: |
|---|
| 322 | + case DIDMSG_P2REQ_RAMDL_WRITE: |
|---|
| 323 | 323 | pr_debug("Received mlme ramdl_write request\n"); |
|---|
| 324 | 324 | result = prism2mgmt_ramdl_write(wlandev, msg); |
|---|
| 325 | 325 | break; |
|---|
| 326 | | - case DIDmsg_p2req_flashdl_state: |
|---|
| 326 | + case DIDMSG_P2REQ_FLASHDL_STATE: |
|---|
| 327 | 327 | pr_debug("Received mlme flashdl_state request\n"); |
|---|
| 328 | 328 | result = prism2mgmt_flashdl_state(wlandev, msg); |
|---|
| 329 | 329 | break; |
|---|
| 330 | | - case DIDmsg_p2req_flashdl_write: |
|---|
| 330 | + case DIDMSG_P2REQ_FLASHDL_WRITE: |
|---|
| 331 | 331 | pr_debug("Received mlme flashdl_write request\n"); |
|---|
| 332 | 332 | result = prism2mgmt_flashdl_write(wlandev, msg); |
|---|
| 333 | 333 | break; |
|---|
| 334 | 334 | /* |
|---|
| 335 | 335 | * Linux specific messages |
|---|
| 336 | 336 | */ |
|---|
| 337 | | - case DIDmsg_lnxreq_hostwep: |
|---|
| 337 | + case DIDMSG_LNXREQ_HOSTWEP: |
|---|
| 338 | 338 | break; /* ignore me. */ |
|---|
| 339 | | - case DIDmsg_lnxreq_ifstate: |
|---|
| 340 | | - { |
|---|
| 341 | | - struct p80211msg_lnxreq_ifstate *ifstatemsg; |
|---|
| 339 | + case DIDMSG_LNXREQ_IFSTATE: { |
|---|
| 340 | + struct p80211msg_lnxreq_ifstate *ifstatemsg; |
|---|
| 342 | 341 | |
|---|
| 343 | | - pr_debug("Received mlme ifstate request\n"); |
|---|
| 344 | | - ifstatemsg = (struct p80211msg_lnxreq_ifstate *)msg; |
|---|
| 345 | | - result = |
|---|
| 346 | | - prism2sta_ifstate(wlandev, |
|---|
| 347 | | - ifstatemsg->ifstate.data); |
|---|
| 348 | | - ifstatemsg->resultcode.status = |
|---|
| 349 | | - P80211ENUM_msgitem_status_data_ok; |
|---|
| 350 | | - ifstatemsg->resultcode.data = result; |
|---|
| 351 | | - result = 0; |
|---|
| 352 | | - } |
|---|
| 342 | + pr_debug("Received mlme ifstate request\n"); |
|---|
| 343 | + ifstatemsg = (struct p80211msg_lnxreq_ifstate *)msg; |
|---|
| 344 | + result = prism2sta_ifstate(wlandev, |
|---|
| 345 | + ifstatemsg->ifstate.data); |
|---|
| 346 | + ifstatemsg->resultcode.status = |
|---|
| 347 | + P80211ENUM_msgitem_status_data_ok; |
|---|
| 348 | + ifstatemsg->resultcode.data = result; |
|---|
| 349 | + result = 0; |
|---|
| 353 | 350 | break; |
|---|
| 354 | | - case DIDmsg_lnxreq_wlansniff: |
|---|
| 351 | + } |
|---|
| 352 | + case DIDMSG_LNXREQ_WLANSNIFF: |
|---|
| 355 | 353 | pr_debug("Received mlme wlansniff request\n"); |
|---|
| 356 | 354 | result = prism2mgmt_wlansniff(wlandev, msg); |
|---|
| 357 | 355 | break; |
|---|
| 358 | | - case DIDmsg_lnxreq_autojoin: |
|---|
| 356 | + case DIDMSG_LNXREQ_AUTOJOIN: |
|---|
| 359 | 357 | pr_debug("Received mlme autojoin request\n"); |
|---|
| 360 | 358 | result = prism2mgmt_autojoin(wlandev, msg); |
|---|
| 361 | 359 | break; |
|---|
| 362 | | - case DIDmsg_lnxreq_commsquality:{ |
|---|
| 363 | | - struct p80211msg_lnxreq_commsquality *qualmsg; |
|---|
| 360 | + case DIDMSG_LNXREQ_COMMSQUALITY: { |
|---|
| 361 | + struct p80211msg_lnxreq_commsquality *qualmsg; |
|---|
| 364 | 362 | |
|---|
| 365 | | - pr_debug("Received commsquality request\n"); |
|---|
| 363 | + pr_debug("Received commsquality request\n"); |
|---|
| 366 | 364 | |
|---|
| 367 | | - qualmsg = (struct p80211msg_lnxreq_commsquality *)msg; |
|---|
| 365 | + qualmsg = (struct p80211msg_lnxreq_commsquality *)msg; |
|---|
| 368 | 366 | |
|---|
| 369 | | - qualmsg->link.status = |
|---|
| 370 | | - P80211ENUM_msgitem_status_data_ok; |
|---|
| 371 | | - qualmsg->level.status = |
|---|
| 372 | | - P80211ENUM_msgitem_status_data_ok; |
|---|
| 373 | | - qualmsg->noise.status = |
|---|
| 374 | | - P80211ENUM_msgitem_status_data_ok; |
|---|
| 367 | + qualmsg->link.status = P80211ENUM_msgitem_status_data_ok; |
|---|
| 368 | + qualmsg->level.status = P80211ENUM_msgitem_status_data_ok; |
|---|
| 369 | + qualmsg->noise.status = P80211ENUM_msgitem_status_data_ok; |
|---|
| 375 | 370 | |
|---|
| 376 | | - qualmsg->link.data = le16_to_cpu(hw->qual.cq_curr_bss); |
|---|
| 377 | | - qualmsg->level.data = |
|---|
| 378 | | - le16_to_cpu(hw->qual.asl_curr_bss); |
|---|
| 379 | | - qualmsg->noise.data = le16_to_cpu(hw->qual.anl_curr_fc); |
|---|
| 380 | | - qualmsg->txrate.data = hw->txrate; |
|---|
| 371 | + qualmsg->link.data = le16_to_cpu(hw->qual.cq_curr_bss); |
|---|
| 372 | + qualmsg->level.data = le16_to_cpu(hw->qual.asl_curr_bss); |
|---|
| 373 | + qualmsg->noise.data = le16_to_cpu(hw->qual.anl_curr_fc); |
|---|
| 374 | + qualmsg->txrate.data = hw->txrate; |
|---|
| 381 | 375 | |
|---|
| 382 | | - break; |
|---|
| 383 | | - } |
|---|
| 376 | + break; |
|---|
| 377 | + } |
|---|
| 384 | 378 | default: |
|---|
| 385 | 379 | netdev_warn(wlandev->netdev, |
|---|
| 386 | 380 | "Unknown mgmt request message 0x%08x", |
|---|
| .. | .. |
|---|
| 467 | 461 | case WLAN_MSD_FWLOAD: |
|---|
| 468 | 462 | wlandev->msdstate = WLAN_MSD_RUNNING_PENDING; |
|---|
| 469 | 463 | /* Initialize the device+driver for full |
|---|
| 470 | | - * operation. Note that this might me an FWLOAD to |
|---|
| 464 | + * operation. Note that this might me an FWLOAD |
|---|
| 471 | 465 | * to RUNNING transition so we must not do a chip |
|---|
| 472 | 466 | * or board level reset. Note that on failure, |
|---|
| 473 | 467 | * the MSD state is set to HWPRESENT because we |
|---|
| .. | .. |
|---|
| 852 | 846 | result = hfa384x_drvr_getconfig(hw, HFA384x_RID_NICSERIALNUMBER, |
|---|
| 853 | 847 | snum, HFA384x_RID_NICSERIALNUMBER_LEN); |
|---|
| 854 | 848 | if (!result) { |
|---|
| 855 | | - netdev_info(wlandev->netdev, "Prism2 card SN: %*pEhp\n", |
|---|
| 849 | + netdev_info(wlandev->netdev, "Prism2 card SN: %*pE\n", |
|---|
| 856 | 850 | HFA384x_RID_NICSERIALNUMBER_LEN, snum); |
|---|
| 857 | 851 | } else { |
|---|
| 858 | 852 | netdev_err(wlandev->netdev, "Failed to retrieve Prism2 Card SN\n"); |
|---|
| .. | .. |
|---|
| 1358 | 1352 | * we get back in range. We should block transmits and |
|---|
| 1359 | 1353 | * receives in this state. Do we need an indication here? |
|---|
| 1360 | 1354 | * Probably not since a polling user-mode element would |
|---|
| 1361 | | - * get this status from from p2PortStatus(FD40). What about |
|---|
| 1355 | + * get this status from p2PortStatus(FD40). What about |
|---|
| 1362 | 1356 | * p80211? |
|---|
| 1363 | 1357 | * Response: |
|---|
| 1364 | 1358 | * Block Transmits, Ignore receives of data frames |
|---|
| .. | .. |
|---|
| 1949 | 1943 | } |
|---|
| 1950 | 1944 | |
|---|
| 1951 | 1945 | /* Get the signal rate */ |
|---|
| 1952 | | - msg.msgcode = DIDmsg_dot11req_mibget; |
|---|
| 1953 | | - mibitem->did = DIDmib_p2_p2MAC_p2CurrentTxRate; |
|---|
| 1946 | + msg.msgcode = DIDMSG_DOT11REQ_MIBGET; |
|---|
| 1947 | + mibitem->did = DIDMIB_P2_MAC_CURRENTTXRATE; |
|---|
| 1954 | 1948 | result = p80211req_dorequest(wlandev, (u8 *)&msg); |
|---|
| 1955 | 1949 | |
|---|
| 1956 | 1950 | if (result) { |
|---|