diff options
Diffstat (limited to 'drivers/net/wireless/libertas/11d.c')
-rw-r--r-- | drivers/net/wireless/libertas/11d.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/net/wireless/libertas/11d.c b/drivers/net/wireless/libertas/11d.c index d16f566e878b..377dcb5b8f0c 100644 --- a/drivers/net/wireless/libertas/11d.c +++ b/drivers/net/wireless/libertas/11d.c | |||
@@ -430,7 +430,7 @@ u8 lbs_get_scan_type_11d(u8 chan, | |||
430 | 430 | ||
431 | } | 431 | } |
432 | 432 | ||
433 | void lbs_init_11d(lbs_private * priv) | 433 | void lbs_init_11d(struct lbs_private *priv) |
434 | { | 434 | { |
435 | priv->adapter->enable11d = 0; | 435 | priv->adapter->enable11d = 0; |
436 | memset(&(priv->adapter->parsed_region_chan), 0, | 436 | memset(&(priv->adapter->parsed_region_chan), 0, |
@@ -440,10 +440,10 @@ void lbs_init_11d(lbs_private * priv) | |||
440 | 440 | ||
441 | /** | 441 | /** |
442 | * @brief This function sets DOMAIN INFO to FW | 442 | * @brief This function sets DOMAIN INFO to FW |
443 | * @param priv pointer to lbs_private | 443 | * @param priv pointer to struct lbs_private |
444 | * @return 0; -1 | 444 | * @return 0; -1 |
445 | */ | 445 | */ |
446 | static int set_domain_info_11d(lbs_private * priv) | 446 | static int set_domain_info_11d(struct lbs_private *priv) |
447 | { | 447 | { |
448 | int ret; | 448 | int ret; |
449 | 449 | ||
@@ -463,13 +463,13 @@ static int set_domain_info_11d(lbs_private * priv) | |||
463 | 463 | ||
464 | /** | 464 | /** |
465 | * @brief This function setups scan channels | 465 | * @brief This function setups scan channels |
466 | * @param priv pointer to lbs_private | 466 | * @param priv pointer to struct lbs_private |
467 | * @param band band | 467 | * @param band band |
468 | * @return 0 | 468 | * @return 0 |
469 | */ | 469 | */ |
470 | int lbs_set_universaltable(lbs_private * priv, u8 band) | 470 | int lbs_set_universaltable(struct lbs_private *priv, u8 band) |
471 | { | 471 | { |
472 | lbs_adapter *adapter = priv->adapter; | 472 | struct lbs_adapter *adapter = priv->adapter; |
473 | u16 size = sizeof(struct chan_freq_power); | 473 | u16 size = sizeof(struct chan_freq_power); |
474 | u16 i = 0; | 474 | u16 i = 0; |
475 | 475 | ||
@@ -492,20 +492,20 @@ int lbs_set_universaltable(lbs_private * priv, u8 band) | |||
492 | 492 | ||
493 | /** | 493 | /** |
494 | * @brief This function implements command CMD_802_11D_DOMAIN_INFO | 494 | * @brief This function implements command CMD_802_11D_DOMAIN_INFO |
495 | * @param priv pointer to lbs_private | 495 | * @param priv pointer to struct lbs_private |
496 | * @param cmd pointer to cmd buffer | 496 | * @param cmd pointer to cmd buffer |
497 | * @param cmdno cmd ID | 497 | * @param cmdno cmd ID |
498 | * @param cmdOption cmd action | 498 | * @param cmdOption cmd action |
499 | * @return 0 | 499 | * @return 0 |
500 | */ | 500 | */ |
501 | int lbs_cmd_802_11d_domain_info(lbs_private * priv, | 501 | int lbs_cmd_802_11d_domain_info(struct lbs_private *priv, |
502 | struct cmd_ds_command *cmd, u16 cmdno, | 502 | struct cmd_ds_command *cmd, u16 cmdno, |
503 | u16 cmdoption) | 503 | u16 cmdoption) |
504 | { | 504 | { |
505 | struct cmd_ds_802_11d_domain_info *pdomaininfo = | 505 | struct cmd_ds_802_11d_domain_info *pdomaininfo = |
506 | &cmd->params.domaininfo; | 506 | &cmd->params.domaininfo; |
507 | struct mrvlietypes_domainparamset *domain = &pdomaininfo->domain; | 507 | struct mrvlietypes_domainparamset *domain = &pdomaininfo->domain; |
508 | lbs_adapter *adapter = priv->adapter; | 508 | struct lbs_adapter *adapter = priv->adapter; |
509 | u8 nr_subband = adapter->domainreg.nr_subband; | 509 | u8 nr_subband = adapter->domainreg.nr_subband; |
510 | 510 | ||
511 | lbs_deb_enter(LBS_DEB_11D); | 511 | lbs_deb_enter(LBS_DEB_11D); |
@@ -552,11 +552,11 @@ done: | |||
552 | 552 | ||
553 | /** | 553 | /** |
554 | * @brief This function parses countryinfo from AP and download country info to FW | 554 | * @brief This function parses countryinfo from AP and download country info to FW |
555 | * @param priv pointer to lbs_private | 555 | * @param priv pointer to struct lbs_private |
556 | * @param resp pointer to command response buffer | 556 | * @param resp pointer to command response buffer |
557 | * @return 0; -1 | 557 | * @return 0; -1 |
558 | */ | 558 | */ |
559 | int lbs_ret_802_11d_domain_info(lbs_private * priv, | 559 | int lbs_ret_802_11d_domain_info(struct lbs_private *priv, |
560 | struct cmd_ds_command *resp) | 560 | struct cmd_ds_command *resp) |
561 | { | 561 | { |
562 | struct cmd_ds_802_11d_domain_info *domaininfo = &resp->params.domaininforesp; | 562 | struct cmd_ds_802_11d_domain_info *domaininfo = &resp->params.domaininforesp; |
@@ -598,14 +598,14 @@ int lbs_ret_802_11d_domain_info(lbs_private * priv, | |||
598 | 598 | ||
599 | /** | 599 | /** |
600 | * @brief This function parses countryinfo from AP and download country info to FW | 600 | * @brief This function parses countryinfo from AP and download country info to FW |
601 | * @param priv pointer to lbs_private | 601 | * @param priv pointer to struct lbs_private |
602 | * @return 0; -1 | 602 | * @return 0; -1 |
603 | */ | 603 | */ |
604 | int lbs_parse_dnld_countryinfo_11d(lbs_private * priv, | 604 | int lbs_parse_dnld_countryinfo_11d(struct lbs_private *priv, |
605 | struct bss_descriptor * bss) | 605 | struct bss_descriptor * bss) |
606 | { | 606 | { |
607 | int ret; | 607 | int ret; |
608 | lbs_adapter *adapter = priv->adapter; | 608 | struct lbs_adapter *adapter = priv->adapter; |
609 | 609 | ||
610 | lbs_deb_enter(LBS_DEB_11D); | 610 | lbs_deb_enter(LBS_DEB_11D); |
611 | if (priv->adapter->enable11d) { | 611 | if (priv->adapter->enable11d) { |
@@ -640,13 +640,13 @@ done: | |||
640 | 640 | ||
641 | /** | 641 | /** |
642 | * @brief This function generates 11D info from user specified regioncode and download to FW | 642 | * @brief This function generates 11D info from user specified regioncode and download to FW |
643 | * @param priv pointer to lbs_private | 643 | * @param priv pointer to struct lbs_private |
644 | * @return 0; -1 | 644 | * @return 0; -1 |
645 | */ | 645 | */ |
646 | int lbs_create_dnld_countryinfo_11d(lbs_private * priv) | 646 | int lbs_create_dnld_countryinfo_11d(struct lbs_private *priv) |
647 | { | 647 | { |
648 | int ret; | 648 | int ret; |
649 | lbs_adapter *adapter = priv->adapter; | 649 | struct lbs_adapter *adapter = priv->adapter; |
650 | struct region_channel *region_chan; | 650 | struct region_channel *region_chan; |
651 | u8 j; | 651 | u8 j; |
652 | 652 | ||