diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-05-05 13:32:35 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-05 13:32:35 -0400 |
commit | a70171dce9cd44cb06c7d299eba9fa87a8933045 (patch) | |
tree | 5425df5f33fadc617c7dec99578d06f0d933578e /drivers/net/wireless/libertas/cfg.c | |
parent | 5a412ad7f4c95bb5b756aa12b52646e857e7c75d (diff) | |
parent | eaef6a93bd52a2cc47b9fce201310010707afdb4 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
drivers/net/wireless/libertas/if_cs.c
drivers/net/wireless/rtlwifi/pci.c
net/bluetooth/l2cap_sock.c
Diffstat (limited to 'drivers/net/wireless/libertas/cfg.c')
-rw-r--r-- | drivers/net/wireless/libertas/cfg.c | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index 5caa2ac14d61..486544e01a56 100644 --- a/drivers/net/wireless/libertas/cfg.c +++ b/drivers/net/wireless/libertas/cfg.c | |||
@@ -122,8 +122,10 @@ static u8 lbs_auth_to_authtype(enum nl80211_auth_type auth_type) | |||
122 | } | 122 | } |
123 | 123 | ||
124 | 124 | ||
125 | /* Various firmware commands need the list of supported rates, but with | 125 | /* |
126 | the hight-bit set for basic rates */ | 126 | * Various firmware commands need the list of supported rates, but with |
127 | * the hight-bit set for basic rates | ||
128 | */ | ||
127 | static int lbs_add_rates(u8 *rates) | 129 | static int lbs_add_rates(u8 *rates) |
128 | { | 130 | { |
129 | size_t i; | 131 | size_t i; |
@@ -425,7 +427,7 @@ static int lbs_add_wpa_tlv(u8 *tlv, const u8 *ie, u8 ie_len) | |||
425 | return ie_len + 2; | 427 | return ie_len + 2; |
426 | } | 428 | } |
427 | 429 | ||
428 | /*************************************************************************** | 430 | /* |
429 | * Set Channel | 431 | * Set Channel |
430 | */ | 432 | */ |
431 | 433 | ||
@@ -452,7 +454,7 @@ static int lbs_cfg_set_channel(struct wiphy *wiphy, | |||
452 | 454 | ||
453 | 455 | ||
454 | 456 | ||
455 | /*************************************************************************** | 457 | /* |
456 | * Scanning | 458 | * Scanning |
457 | */ | 459 | */ |
458 | 460 | ||
@@ -538,8 +540,10 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy, | |||
538 | goto done; | 540 | goto done; |
539 | } | 541 | } |
540 | 542 | ||
541 | /* Validity check: the TLV holds TSF values with 8 bytes each, so | 543 | /* |
542 | * the size in the TLV must match the nr_sets value */ | 544 | * Validity check: the TLV holds TSF values with 8 bytes each, so |
545 | * the size in the TLV must match the nr_sets value | ||
546 | */ | ||
543 | i = get_unaligned_le16(tsfdesc); | 547 | i = get_unaligned_le16(tsfdesc); |
544 | tsfdesc += 2; | 548 | tsfdesc += 2; |
545 | if (i / 8 != scanresp->nr_sets) { | 549 | if (i / 8 != scanresp->nr_sets) { |
@@ -581,8 +585,10 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy, | |||
581 | 585 | ||
582 | /* To find out the channel, we must parse the IEs */ | 586 | /* To find out the channel, we must parse the IEs */ |
583 | ie = pos; | 587 | ie = pos; |
584 | /* 6+1+8+2+2: size of BSSID, RSSI, time stamp, beacon | 588 | /* |
585 | interval, capabilities */ | 589 | * 6+1+8+2+2: size of BSSID, RSSI, time stamp, beacon |
590 | * interval, capabilities | ||
591 | */ | ||
586 | ielen = left = len - (6 + 1 + 8 + 2 + 2); | 592 | ielen = left = len - (6 + 1 + 8 + 2 + 2); |
587 | while (left >= 2) { | 593 | while (left >= 2) { |
588 | u8 id, elen; | 594 | u8 id, elen; |
@@ -790,7 +796,7 @@ static int lbs_cfg_scan(struct wiphy *wiphy, | |||
790 | 796 | ||
791 | 797 | ||
792 | 798 | ||
793 | /*************************************************************************** | 799 | /* |
794 | * Events | 800 | * Events |
795 | */ | 801 | */ |
796 | 802 | ||
@@ -825,7 +831,7 @@ void lbs_send_mic_failureevent(struct lbs_private *priv, u32 event) | |||
825 | 831 | ||
826 | 832 | ||
827 | 833 | ||
828 | /*************************************************************************** | 834 | /* |
829 | * Connect/disconnect | 835 | * Connect/disconnect |
830 | */ | 836 | */ |
831 | 837 | ||
@@ -950,8 +956,10 @@ static int lbs_enable_rsn(struct lbs_private *priv, int enable) | |||
950 | * Set WPA/WPA key material | 956 | * Set WPA/WPA key material |
951 | */ | 957 | */ |
952 | 958 | ||
953 | /* like "struct cmd_ds_802_11_key_material", but with cmd_header. Once we | 959 | /* |
954 | * get rid of WEXT, this should go into host.h */ | 960 | * like "struct cmd_ds_802_11_key_material", but with cmd_header. Once we |
961 | * get rid of WEXT, this should go into host.h | ||
962 | */ | ||
955 | 963 | ||
956 | struct cmd_key_material { | 964 | struct cmd_key_material { |
957 | struct cmd_header hdr; | 965 | struct cmd_header hdr; |
@@ -1536,7 +1544,7 @@ static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev, | |||
1536 | } | 1544 | } |
1537 | 1545 | ||
1538 | 1546 | ||
1539 | /*************************************************************************** | 1547 | /* |
1540 | * Get station | 1548 | * Get station |
1541 | */ | 1549 | */ |
1542 | 1550 | ||
@@ -1581,7 +1589,7 @@ static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev, | |||
1581 | 1589 | ||
1582 | 1590 | ||
1583 | 1591 | ||
1584 | /*************************************************************************** | 1592 | /* |
1585 | * "Site survey", here just current channel and noise level | 1593 | * "Site survey", here just current channel and noise level |
1586 | */ | 1594 | */ |
1587 | 1595 | ||
@@ -1614,7 +1622,7 @@ static int lbs_get_survey(struct wiphy *wiphy, struct net_device *dev, | |||
1614 | 1622 | ||
1615 | 1623 | ||
1616 | 1624 | ||
1617 | /*************************************************************************** | 1625 | /* |
1618 | * Change interface | 1626 | * Change interface |
1619 | */ | 1627 | */ |
1620 | 1628 | ||
@@ -1656,11 +1664,12 @@ static int lbs_change_intf(struct wiphy *wiphy, struct net_device *dev, | |||
1656 | 1664 | ||
1657 | 1665 | ||
1658 | 1666 | ||
1659 | /*************************************************************************** | 1667 | /* |
1660 | * IBSS (Ad-Hoc) | 1668 | * IBSS (Ad-Hoc) |
1661 | */ | 1669 | */ |
1662 | 1670 | ||
1663 | /* The firmware needs the following bits masked out of the beacon-derived | 1671 | /* |
1672 | * The firmware needs the following bits masked out of the beacon-derived | ||
1664 | * capability field when associating/joining to a BSS: | 1673 | * capability field when associating/joining to a BSS: |
1665 | * 9 (QoS), 11 (APSD), 12 (unused), 14 (unused), 15 (unused) | 1674 | * 9 (QoS), 11 (APSD), 12 (unused), 14 (unused), 15 (unused) |
1666 | */ | 1675 | */ |
@@ -1999,7 +2008,7 @@ static int lbs_leave_ibss(struct wiphy *wiphy, struct net_device *dev) | |||
1999 | 2008 | ||
2000 | 2009 | ||
2001 | 2010 | ||
2002 | /*************************************************************************** | 2011 | /* |
2003 | * Initialization | 2012 | * Initialization |
2004 | */ | 2013 | */ |
2005 | 2014 | ||