aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* nl80211: make get_vlan logic more commonJohannes Berg2011-11-21
| | | | | | | | | get_vlan() sets the output parameter even if it returns an error, which is a bit odd. Instead, convert it to use ERR_PTR. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* cfg80211: add flags for off-channel capabilitiesJohannes Berg2011-11-21
| | | | | | | | | | | Currently mac80211 implements these for all devices, but given restrictions of some devices that isn't really true, so prepare for being able to remove the capability for some mac80211 devices. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Kalle Valo <kvalo@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* mac80211: minor cleanup to mesh state lockingJohannes Berg2011-11-21
| | | | | | | | | | | | | First time I tried smatch, and it says: mesh_hwmp.c +870 mesh_queue_preq(21) error: double lock 'bottom_half:' mesh_hwmp.c +873 mesh_queue_preq(24) error: double unlock 'bottom_half:' mesh_hwmp.c +886 mesh_queue_preq(37) error: double unlock 'bottom_half:' Which is indeed true -- there's no point in disabling BHs again if we just did that a few lines earlier, so remove. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwl-debug: Shrink object by using dev_err and deduplicating formatsJoe Perches2011-11-21
| | | | | | | | | | | | | | | | | | | Using dev_err instead of dev_printk(KERN_ERR uses fewer arguments and is a bit smaller. Deduplicating formats used by IWL_DEBUG_QUIET_RFKILL also makes the object a bit smaller. Neatened the macros, used ##__VA_ARGS__. $ size drivers/net/wireless/iwlwifi/built-in.o* text data bss dec hex filename 462652 8646 92576 563874 89aa2 drivers/net/wireless/iwlwifi/built-in.o.new 467557 8646 92592 568795 8addb drivers/net/wireless/iwlwifi/built-in.o.old Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlwifi: remove redundancyWey-Yi Guy2011-11-21
| | | | | | | just use iwl_bus, remove the redundancy Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlwifi: tid_data is taken twice in iwl_trans_pcie_tx_agg_allocEmmanuel Grumbach2011-11-21
| | | | | | | | Remove this redundancy. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlwifi: fix endianity issues in debug printsEmmanuel Grumbach2011-11-21
| | | | | | | | | Use the CPUed version of the variables when printing data from the BA notification. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlwifi: improve the prints in the reclaim pathEmmanuel Grumbach2011-11-21
| | | | | | | | Some information was redundation, other was missing. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlwifi: check the HW when a queue is stuckEmmanuel Grumbach2011-11-21
| | | | | | | | | | Add more information when a queue is stuck and actually get information from the scheduler instead of looking at internal variables. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* brcm80211: smac: Use kmemdup rather than duplicating its implementationThomas Meyer2011-11-21
| | | | | | | | | The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Acked-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* rtlwifi: Remove redundant code from PCI interruptLarry Finger2011-11-21
| | | | | | | | The interrupt routine for PCI devices has a special exit that executes the same instructions as does the normal exit. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* rtlwifi: rtl8192cu: Fix endianian issuesLarry Finger2011-11-21
| | | | | | | | | | | | | | Driver rtlwifi fails on a big-endian host. These changes have been tested on a Mac PowerBook G4, which has a PPC processor. Although this patch touches some of the code that will affect endian issues on PCI hardware through drivers rtl8192ce, rtl8192se, and rtl8192de, these have not been tested due to lack of suitable hardware. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* rtlwifi: rtl8192cu: Change firmware upload to use block writesLarry Finger2011-11-21
| | | | | | | | | | Driver rtl8192cu writes the firmware with 32-bit asynchronous writes. This design is OK for USB 2.0 adapters, but the current implementation of xhcu-hcd has a limited ring size, which is exceeded. By converting to synchronous block writes, this error is avoided. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* rtlwifi: rtl8192cu: Allow retries for USB I/OGeorge2011-11-21
| | | | | | | | The USB driver does not retry reads - allow 10 tries. Signed-off-by: George <george0505@realtek.com> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* nl80211: add testmode to the list of supported commandsKalle Valo2011-11-21
| | | | | | | | | | | User space might want to test if driver supports testmode. Adding testmode to the list of supported commands makes this easier. I omitted testmode_dump() in purpose. I assume all drivers implementing testmode_dump() will also implement testmode_cmd(). Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* mac80211: remove unused ASSOC_AP flagJohannes Berg2011-11-21
| | | | | | | | | WLAN_STA_ASSOC_AP indicates that the station entry is for an AP we're associated to but isn't used so remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* mac80211: transmit fragment list to driversJohannes Berg2011-11-21
| | | | | | | | | | | | | | Drivers can usually handle fragmented packets much easier when they get the entire list of fragments at once. The only thing they need to do is keep enough space on the queues for up to ten fragments of a single MSDU. This allows them to implement this with a new operation tx_frags. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* mac80211: make TX LED handling independent of fragmentationJohannes Berg2011-11-21
| | | | | | | | | | This just prepares for passing the entire fragment list to the driver. No significant changes, but the TX throughput is calculated slightly differently now and we blink only once for each MSDU. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* mac80211: move fragment flag adjustmentJohannes Berg2011-11-21
| | | | | | | | Instead of adjusting the fragment flags at TX time, adjust them at fragmentation time. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* mac80211: use skb list for fragmentsJohannes Berg2011-11-21
| | | | | | | | | | | | | We are currently linking the skbs by using skb->next directly. This works, but the preferred way is to use a struct sk_buff_head instead. That also prepares for passing that to drivers directly. While at it I noticed we calculate the duration for fragments twice -- remove one of them. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* ath9k: trivial: reorder rx_tasklet processingZefir Kurtisi2011-11-21
| | | | | | | | | | | | DFS events are reported as PHY errors and need to be processed with a correct timestamp set before ath9k_skb_preprocess() is called and the frame is possibly dropped. This patch puts the rxs->mactime calculation before the skb is preprocessed to prepare for DFS event reporting. Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* cfg80211: pass DFS region to drivers through reg_notifier()Luis R. Rodriguez2011-11-21
| | | | | | | | This grants drivers access to the DFS region that a regulatory domain belongs to. Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* cfg80211: process regulatory DFS region for countriesLuis R. Rodriguez2011-11-21
| | | | | | | | | | | The wireless-regdb now has support for mapping a country to one DFS region. CRDA sends this to us now so process it so we can provide that hint to drivers. This will later be used by code for processing DFS in a way that meets the criteria for the DFS region the country belongs to. Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* Merge branch 'for-linville' of git://github.com/sgruszka/iwlegacyJohn W. Linville2011-11-21
|\
| * iwlegacy: debugfs_ops should depend on CONFIG_IWLEGACY_DEBUGFSGreg Dietsche2011-11-16
| | | | | | | | | | | | | | Only setup structs related to debugfs_ops when CONFIG_IWLEGACY_DEBUGFS is set. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: 4965-rs: cleanup il4965_rs_sta_dbgfs_rate_scale_data_readGreg Dietsche2011-11-16
| | | | | | | | | | | | | | | | 1) remove ret local var and return the result directly 2) remove il since it is not used Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: 4965-rs: don't return rate from il4965_rs_update_rate_tblGreg Dietsche2011-11-16
| | | | | | | | | | | | | | | | 1) don't return rate from il4965_rs_update_rate_tbl 2) fix up il4965_rs_rate_scale_perform Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: 4965-rs: il4965_rs_alloc_sta: remove lq_sta local varGreg Dietsche2011-11-16
| | | | | | | | | | | | | | | | remove the lq_sta local variable and return the result directly in il4965_rs_alloc_sta Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: 4965-rs: remove unnecessary null check for sta and lq_staGreg Dietsche2011-11-16
| | | | | | | | | | | | | | | | both sta and lq_sta are guaranteed to be not null in the calling function so we don't need to check them here. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: 4965-rs: remove null check on sta in il4965_rs_tx_statusGreg Dietsche2011-11-16
| | | | | | | | | | | | | | the null check on sta in il4965_rs_tx_status is not necessary Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: 4965: remove vif null check in request_scanGreg Dietsche2011-11-16
| | | | | | | | | | | | | | remove null check on vif in il4965_request_scan Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: remove unused IL_AC_UNSET defineStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: change IL_ERR to D_HT in iwl4965_rs_tl_turn_on_agg_for_tidGreg Dietsche2011-11-15
| | | | | | | | | | | | | | This message should be a debug message and not an error. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: change IL_WARN to D_HT in il4965_tx_agg_startGreg Dietsche2011-11-15
| | | | | | | | | | | | | | This message should be a debug message and not a warning. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: checkpatch.pl fixesStanislaw Gruszka2011-11-15
| | | | | | | | | | | | Fix most checkpatch.pl ERRORs and some WARNINGs. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: indentions and whitespacesStanislaw Gruszka2011-11-15
| | | | | | | | | | | | | | | | | | | | | | Process iwlegacy source files using: indent -npro -l500 -nhnl indent -npro -kr -i8 -ts8 -sob -l80 -nbbo -ss -ncs -cp1 -il0 -psl Plus manual compilation fixes. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: merge iwl-debug.h into common.hStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: rename iwl-debug.c to debug.cStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: merge iwl-fh.h into 4965.hStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: use FH49_ prefix in 4965 codeStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: use FH39_ prefix in 3945 codeStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: rename iwl-prph.h to prph.hStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: merge iwl-{eeprom,led}.h into common.hStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: merge iwl-power.h into common.hStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: merge iwl-legacy-rs.h into common.hStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: remove iwl-helpers.hStanislaw Gruszka2011-11-15
| | | | | | | | | | | | This file was already merged into common.h Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: merge common header filesStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: rename iwl-core.h to common.hStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: rename iwl-csr.h to csr.hStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
| * iwlegacy: move IL_MASKStanislaw Gruszka2011-11-15
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>