aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-16mac80211: Push the deleted comment to correct placeAshok Nagarajan1-0/+5
This comment is deleted in the patch "mac80211: Advertise HT protection mode in IEs". Moving the comment to the now corrected place. Signed-off-by: Ashok Nagarajan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16wlcore: fix some sparse warnings due to missing static declarationLuciano Coelho1-3/+4
There were three sparse warnings in main.c due to missing static declaration: CHECK drivers/net/wireless/ti/wlcore/main.c drivers/net/wireless/ti/wlcore/main.c:1265:5: warning: symbol 'wl1271_validate_wowlan_pattern' was not declared. Should it be static? drivers/net/wireless/ti/wlcore/main.c:1408:5: warning: symbol 'wl1271_convert_wowlan_pattern_to_rx_filter' was not declared. Should it be static? drivers/net/wireless/ti/wlcore/main.c:4823:6: warning: symbol 'wl1271_connection_loss_work' was not declared. Should it be static? Fix these by adding the static declaration to those functions. Signed-off-by: Luciano Coelho <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16wlcore: fix pointer print out in wl1271_acx_set_rx_filter()Luciano Coelho1-2/+3
The debug print in wl1271_acx_set_rx_filter() was causing the following warning: CC drivers/net/wireless/ti/wlcore/acx.o drivers/net/wireless/ti/wlcore/acx.c: In function ‘wl1271_acx_set_rx_filter’: drivers/net/wireless/ti/wlcore/acx.c:1759:2: warning: cast from pointer to integer of different size Instead of casting the pointer to an integer, use %p to print it our instead. Reported-by: John W. Linville <[email protected]> Signed-off-by: Luciano Coelho <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: remove set_channel cfg80211 hookJohannes Berg1-27/+0
Since mwifiex only supports managed and IBSS modes, it doesn't need a set_channel call. The callback might be called, but it won't matter as nothing can use the channel. Signed-off-by: Johannes Berg <[email protected]> Acked-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16rndis_wlan: remove set_channel cfg80211 hookJohannes Berg1-14/+0
Since rndis_wlan only supports managed and IBSS modes, it doesn't need a set_channel call. The callback might be called, but it won't matter as nothing can use the channel. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16iwlwifi: support explicit monitor interfaceJohannes Berg3-1/+6
Support explicit monitor interface to keep injection working after the HW queue changes. This also finally enables sniffer mode. Reviewed-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16iwlwifi: invert the order of ssid list in scan cmdDavid Spinadel1-1/+5
The firmware inverts the order of ssid list of scan command, we should invert the order before sending the command, in order to get probe requests sent in wanted order. Signed-off-by: David Spinadel <[email protected]> Reviewed-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16iwlwifi: disable default wildcard ssid scanDavid Spinadel2-11/+24
iwl_fill_probe_request has used to add a wildcard ssid IE to any probe request template, now it's disabled and it will send wildcard ssid only for full scan. Instead, the highest priority ssid is set to the template. Due to adding high priority SSID to the template, it reduce IE len, but since we had only 260 bytes for IEs before changing allocation size to be dynamic, now we should have a bit more room for IEs. Signed-off-by: David Spinadel <[email protected]> Reviewed-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16iwlwifi: fix scan_cmd_size allocationDavid Spinadel2-6/+12
Allocate scan command with dynamic size based on uCode capability and num of channels. This isn't an important fix as the previous allocation was always too large as it added the scan command size but later subtracted it (which meant it was supposed to be part of the max scan size.) Signed-off-by: David Spinadel <[email protected]> Reviewed-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16nl80211: refactor valid channel type checkJohannes Berg1-30/+29
There are four instances in nl80211 of getting the channel type from the attribute and validating it, refactor those. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16cfg80211: fix cfg80211_can_beacon_sec_chan prototypeJohannes Berg2-4/+4
It should return bool, not int. The function even does return true/false. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16nl80211: prevent additions to old station flags APIJohannes Berg2-2/+10
We don't really want/need to maintain the old station flags API any more, so refuse changes to new (not yet defined) flags from the old flags API. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16NFC: Queue I frame fragments to the LLCP sockets queue tailSamuel Ortiz1-1/+1
After testing our stack with large SNEP messages, we realized the fragments were arriving in reversed order. Signed-off-by: Samuel Ortiz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16NFC: Export nfc.h to userlandSamuel Ortiz1-0/+1
The netlink commands and attributes, along with the socket structure definitions need to be exported. Signed-off-by: Samuel Ortiz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mac80211: fix network header location when adding encryption headersArik Nemtsov2-0/+3
Update the location of the network header when adding encryption specific headers to a skb. This allows low-level drivers to use the (now correct) location of the network header. Signed-off-by: Arik Nemtsov <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mac80211: (selectively) add HT details in radiotapJohannes Berg3-3/+16
Add a flag for the HT format (mixed vs. greenfield) to allow drivers to report that on receive. Not all drivers will do that though, so allow drivers to set which radiotap MCS details they report. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16rt2x00:Add RT539b chipset supportZero.Lin1-0/+1
Signed-off-by: Zero.Lin <[email protected]> Acked-by: Gertjan van Wingerde <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16ssb: add PCI IDs 0x4322 and 43222Hauke Mehrtens1-0/+2
The 0x4322 ID is found on the BCM4322 used on some SoCs like the Linksys WRT610N V1 connected to a BCM4705. The 43222 (0xa8d6) ID is found on the BCM43222 used on some other SoCs like the D-Link DSL-2760U connected to a BCM63xx. Signed-off-by: Hauke Mehrtens <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mac80211: Add IV-room in the skb for TKIP and WEP[email protected]3-5/+19
Add IV-room in skb also for TKIP and WEP. Extend patch: "mac80211: support adding IV-room in the skb for CCMP keys" Signed-off-by: Janusz Dziedzic <[email protected]> Acked-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: delete IEs when stop_apAvinash Patil3-0/+75
Delete custom IEs set by start_ap cfg80211 handler when stop_ap handler is called for AP interface. IE index required for deletion is stored in mwifiex_private structure. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: retrieve IEs from cfg80211_beacon_data and send to firmwareAvinash Patil5-0/+195
This patch adds logic for setting tail beacon IE, probe response IE and assoc response IE from cfg80211_ap_settings parameter of start_ap handler into FW. RSN IE is also retrieved from tail IE buffer and sent to firmware. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: add custom IE frameworkAvinash Patil8-1/+201
1. support for setting custom IE from application hostapd etc. Custom IE addition using auto-indexing and Custom IE deletion using static indices (which are allocated during IE addition and stored in driver) are supported. 2. Separate file for handling IE related execution. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: rearrange AP sys configure codeAvinash Patil3-21/+48
This patch takes into account AP config_type (bss config/custom ie config) while preparing AP sys_configure command buffer. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: add WPA2 support for APAvinash Patil5-0/+268
1. Support for parsing security related parameters from cfg80211_ap_settings in start_ap cfg80211 handler 2. Conversion of these security information into FW understandle TLVs and setting into FW thru sys_config command 3. key management is done on host. This ensures that FW forwards EAPOL key packets to host instead of processing on its own. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: add AP event handling frameworkAvinash Patil4-2/+73
Added logic to handle AP event that are generated by the firmware. As MLME/SME is implemented in the firmware, events such as station association and deauthentication, must be sent to userspace (hostapd) for creating and deleting station database. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: add cfg80211 start_ap and stop_ap handlersAvinash Patil5-0/+139
1. add start AP and stop AP handlers 2. support for parsing ssid, beacon period, DTIM period from beacon_parameters structure and setting it to FW. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: common set_wiphy_params cfg80211 handler for AP and STA interfaceAvinash Patil6-20/+150
Add support for setting fragmentation threshold, RTS threshold and retry limit. Since wiphy parameters are properties of physical device, appropriate function to set phy parameters is invoked depending upon bss_type(STA or AP) for each virtual interface. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: handle interface type changes correctlyAvinash Patil1-18/+46
mlan0: managed or ibss The iftype can be changed from STATION to ADHOC, and vice versa. uap0: AP only The iftype cannot be changed. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: stop BSS in deauthentication handlingAvinash Patil1-0/+4
While in AP mode, we should stop BSS in deauthentication handler. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: add AP command sys_config and set channelAvinash Patil5-1/+90
1. support for AP sys_config command and added parsing of channel information. 2. support for setting AP channel from cfg80211 set_channel handler Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: add bss start and bss stop commands for APAvinash Patil6-2/+75
1. separate file for preparing uAP command buffer 2. definition of bss_start and bss_stop commands being sent to firmware Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: append peer mac address TLV in key material command to firmwareAvinash Patil5-9/+46
Modify key related cfg80211 handlers to copy peer mac address for pairwise keys. If peer mac address is not present or group keys, it will be sent as broadcast mac address. This would be required since hostapd downloads per peer PTK. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: save adapter pointer in wiphy_privAvinash Patil3-25/+27
Since wiphy structure is per adapter we would save adapter, instead of mwifiex private pointer, in wiphy_priv. Also move country_info from mwifiex_private to mwifiex_adapter as making it part of mwifiex_adapter looks logical. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: multi-interface support for mwifiexAvinash Patil1-0/+20
mwifiex supports STA and AP interfaces which use same phy. Indicate this to cfg80211. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: support for creation of AP interfaceAvinash Patil4-66/+98
1. wiphy structure is per device; hence moved it to mwifiex_adapter mwifiex_register_cfg80211 takes mwifiex_adapter as parameter. This function only registers wiphy with cfg80211. 2. Creation of interfaces is moved to cfg80211 add_virtual_interface handler. 3. Create 2 interfaces by default: station and AP Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Amitkumar Karwar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: handle station specific commands on STA interface onlyAvinash Patil2-20/+34
Commands like IBSS coalescing status, power save, 11D should be handled only when bss_type is STA. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mwifiex: allocate space for one more mwifiex_private structureAvinash Patil3-16/+23
Reserve space for one more priv structure. This will be used by AP interface. Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Yogesh Ashok Powar <[email protected]> Signed-off-by: Kiran Divekar <[email protected]> Signed-off-by: Bing Zhao <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16b43: use pci_is_pcie() instead of obsolete pci_dev.is_pcieBjorn Helgaas1-1/+1
Use pci_is_pcie() instead of looking at obsolete is_pcie field in struct pci_dev. CC: Stefano Brivio <[email protected]> CC: [email protected] CC: Kenji Kaneshige <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Kenji Kaneshige <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16cfg80211: add warning when calculating MCS rates >= 32Johannes Berg1-1/+1
cfg80211_calculate_bitrate() doesn't work for MCS rates 32 or higher, and it has always returned 0 in that case. Warn if it ever really happens. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16cfg80211: remove double prototypeJohannes Berg1-2/+0
cfg80211_calculate_bitrate() is defined in the external header file cfg80211.h now, so no need to keep it in the internal one as well. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16Net: wireless: core.c: fixed checkpatch warningsCristian Chilipirea1-2/+2
Fixed some checkpatch warnings. Signed-off-by: Cristian Chilipirea <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mac80211: fix TX aggregation session timerJohannes Berg1-2/+8
In commit 12d3952fc4a1cd96234bc7023bf7eefeb0bb6355 ("mac80211: optimize aggregation session timeout handling") two bugs were introduced: 1) RCU usage was completely broken since no locks are held 2) the timer must not rearm when agg session is stopping Reported-and-tested-by: Larry Finger <[email protected]> Cc: Felix Fietkau <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16mac80211: fix single queue driversJohannes Berg1-1/+3
My queue management rework broke drivers that don't have multiple AC queues and register a single queue only, causing a warning: WARNING: at net/mac80211/iface.c:162 ieee80211_check_queues This was due to filling the queues wrongly and then noticing the error when checking later. Reported-and-Tested-by: Larry Finger <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16bcma: Add flush for BCMA_RESET_CTL writeNathan Hintz1-0/+1
Adds a missing read to flush the previous write (per the Broadcom SDK). Signed-off-by: Nathan Hintz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16bcma: Add __devexit to bcma_host_pci_removeNathan Hintz1-2/+2
Add missing __devexit attribute to bcma_host_pci_remove. Signed-off-by: Nathan Hintz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16bcma: reads/writes are always 4 bytes, so always map 4 bytesNathan Hintz1-3/+3
Modify ioremap_nocache calls to reflect the number of bytes read/written. Signed-off-by: Nathan Hintz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16bcma: Account for variable PCI memory base/sizeNathan Hintz1-2/+2
PCI Memory Resource start address and size are variable, dependent on the H/W configuration. Modify the computation of io_map_base to use the computed values. Signed-off-by: Nathan Hintz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16bcma: Move initialization of SPROM to prevent overwriteNathan Hintz2-2/+4
The first thing bcm47xx_fill_sprom does is initialize (zero fill) the SPROM. For BCMA SOC, this wipes out any values previously read by bcm47xx_fill_sprom_ethernet (see arch/mips/bcm47xx/setup.c - bcm47xx_get_sprom_bcma). Move the initialization of SPROM so it is called prior to filling in any values. Signed-off-by: Nathan Hintz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16bcma: Find names of non BCM coresNathan Hintz1-14/+40
bcma_device_name only provides names for Broadcom cores. Modify logic to provide names for MIPS and ARM cores as well. Signed-off-by: Nathan Hintz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-05-16brcmsmac: handle non pci in ai_deviceremoved()Hauke Mehrtens1-0/+3
This is based on code from the Broadcom SDK. Signed-off-by: Hauke Mehrtens <[email protected]> Tested-by: Arend van Spriel <[email protected]> Signed-off-by: John W. Linville <[email protected]>