aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless
AgeCommit message (Collapse)AuthorFilesLines
2014-06-19wil6210: fix for unreachable code in wmi_recv_cmdVladimir Kondratiev1-15/+10
As reported by Dan Carpenter <[email protected]>: The patch a715c7ddd65a: "wil6210: improve debug for WMI receive" from May 29, 2014, leads to the following static checker warning: drivers/net/wireless/ath/wil6210/wmi.c:746 wmi_recv_cmd() info: ignoring unreachable code. drivers/net/wireless/ath/wil6210/wmi.c 739 spin_unlock_irqrestore(&wil->wmi_ev_lock, flags); 740 { 741 int q = queue_work(wil->wmi_wq, 742 &wil->wmi_event_worker); 743 wil_dbg_wmi(wil, "queue_work -> %d\n", q); 744 } 745 } 746 if (n > 1) ^^^^^^^^^^ We never reach this if statemtent. 747 wil_dbg_wmi(wil, "%s -> %d events processed\n", __func__, n); 748 } Exit loop with "break", not "return". Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: map additional registers on targetVladimir Kondratiev1-0/+1
New registers area introduced, mark corresponded address range as valid Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: remove unused #includeVladimir Kondratiev1-1/+0
In the pcie_bus.c, knowledge about debugfs is not necessary Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: fix disconnect handling for APVladimir Kondratiev1-5/+13
For the AP-like interface, if "disconnect all" requested, every station should be deleted with cfg80211_del_sta(). Implement this behavior. Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: avoid dmesg pollution by Tx errorsVladimir Kondratiev1-2/+2
On Tx path, when vring for the destination not found, it was considered as error and message was printed unconditionally. However, this situation is normal after disconnect. If disconnect was while heavy traffic load, lots of Tx packets will be dropped and this would cause significant amount of prints in dmesg. Demote messages priority from 'error' to 'debug'. Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: Debug print GRO Rx resultVladimir Kondratiev1-0/+11
Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: add 'freq' and 'link' debugfs entriesVladimir Kondratiev3-2/+80
Expose operational frequency and link info Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: Use "name = value" format in the debugfsVladimir Kondratiev1-2/+2
Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: debug print when scan request state changesVladimir Kondratiev3-0/+6
Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: print error when notifying about FW errorVladimir Kondratiev1-0/+1
Print to dmesg when FW error notification is about to be sent Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: writeable ITR registersVladimir Kondratiev1-3/+3
Interrupt threshold registers may be written to. Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: debugfs interface to send raw WMI commandVladimir Kondratiev1-0/+41
Debug aid Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: BACK: track last dropped SSNVladimir Kondratiev3-1/+3
Track and print on debugfs Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: Allow driver load if FW not readyVladimir Kondratiev1-0/+6
Usable for debugging, to be able to obtain FW traces Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: Tx performance monitoringVladimir Kondratiev3-4/+23
For performance monitoring, trace time intervals when Tx vring is idle/not idle. Use CPU cycle counter for this, because jiffies is too rough, and other precise time measurement methods involve overhead while get_cycles() should be fast. This used to provide some estimation for percentage when Tx vring was idle, i.e. when hardware is under-utilized. Estimation is not precise because of many reasons - CPU frequency scaling, grt_cycles() may be per core etc. But still, it is good estimation Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: more debug info for vringVladimir Kondratiev2-2/+11
print used/available counters on debugfs; print to dmesg when Tx vring becomes empty This aids with performance investigation Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: print more info about BSS foundVladimir Kondratiev1-0/+11
print essential info to dmesg Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: trace wil->status on debugfsVladimir Kondratiev1-0/+22
For debug purposes Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: print debug info when starting APVladimir Kondratiev1-1/+42
In the wil_cfg80211_start_ap(), debug print selected data: - beacon (before and after fix-up) - crypto parameters - mark start/stop AP invocation Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: indicate mgmt_tx statusVladimir Kondratiev1-4/+9
Inform cfg80211 about Tx result Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19wil6210: Tx mgmt frame from debugfsVladimir Kondratiev3-4/+86
Provide 2 files on the debugfs: - "rxon": write channel (1..4) to open Rx on it, 0 to rxoff - "tx_mgmt": write binary frame, starting from MAC header one need to care about turning receiver on/off before/after tx_mgmt Correct sequence is: echo $channel > rxon cat mfmt_frame > tx_mgmt echo 0 > rxon Signed-off-by: Vladimir Kondratiev <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Changes for 40MHzJahnavi Meher3-22/+31
Added code required for 40MHz. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Adding support for host based bgscan.Jahnavi Meher4-12/+160
Added support for host based bgscan. The h/w queues are blocked while bgscan is being performed and after coming to the connected channel, the queues are unblocked. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Adding support for 5GHzJahnavi Meher3-12/+87
Adding support for 5GHz. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Sending QoS null packet via the mgmt queue.Jahnavi Meher1-1/+2
Send the QoS null packet via mgmt queue. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Added debug messages.Jahnavi Meher1-0/+2
Added some debug messages. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Changed the logic of dequeuing packets from hal queues.Jahnavi Meher2-24/+59
The number of packets being dequeued from s/w queues was fixed - changed it to a dynamic calculation based on txop. There are also some fixes to the dequeuing algorithm. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Changed the SDIO interrupt variables and some clean up.Jahnavi Meher2-7/+9
Changed the SDIO interrupt variables and some clean ups. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Use SGI if configured for fixed rate transmission.Jahnavi Meher2-0/+7
Use SGI if configured while sending data packets at a fixed rate. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Lower level debug messages and changed handling of confirm received for ↵Jahnavi Meher1-3/+6
rsi_program_bb_rf(). Lower level debug messages for some frames and changed confirm received for rsi_program_bb_rf() to a valid case. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Changed rate handling.Jahnavi Meher1-19/+16
Changed rate handling. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Changed the rsi_set_channel() and rsi_program_bb_rf().Jahnavi Meher1-18/+2
Made required changes to rsi_set_channel() and rsi_program_bb_rf() functions. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Changed the radio caps frame.Jahnavi Meher2-0/+22
Changed the radio caps frame and added the required fields. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Add macros for endpoints and set default value of endpoint.Jahnavi Meher2-0/+6
Added macros for the endpoints and set the default value of endpoint to 2.4GHz and 20MHz. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Using band from rsi_common to fill in ieee80211_rx_statusJahnavi Meher1-4/+1
Filling in band from common->band. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Fixed the kernel docJahnavi Meher1-1/+1
Changed the function header to match the function name. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rsi: Mapping the debugfs stats to the correct s/w queues.Jahnavi Meher1-5/+5
Changed the queue numbers to macros, and corrected the mappings. Signed-off-by: Jahnavi Meher <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19rt2x00: Use dma_zalloc_coherentJoe Perches1-5/+3
Use the zeroing function instead of dma_alloc_coherent & memset(,0,) Signed-off-by: Joe Perches <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Advertise multichannel supportRajkumar Manoharan1-2/+20
Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: use separate HW queue for each channel contextRajkumar Manoharan4-7/+63
Use seperate tx queue for each AC in each channel context and expose these information to mac80211 to avoid stopping one channel context leads to stopping the entire traffic for that AC even on other contexts. Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Add recovery mechanism for hw TSF timerFelix Fietkau4-7/+31
Configure the TSF based hardware timer for a channel switch. Also set up backup software timer, in case the gen timer fails. This could be caused by a hardware reset. Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Update channel switch timerFelix Fietkau1-0/+11
TSF time might have been updated by the incoming beacon, need update the channel switch timer to reflect the change. Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Handle beacon miss on multi channel contextFelix Fietkau2-4/+27
Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Add periodic NoA supportFelix Fietkau3-8/+44
Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Add multi-channel scheduling supportFelix Fietkau3-4/+99
Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Implement mgd_prepare_txFelix Fietkau3-8/+46
Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Adjust AP beacon tsf based on station contextFelix Fietkau3-0/+55
In multi channel context (AP + STA case), adjust the TSF time of the AP chanctx to keep its beacons at half beacon interval offset relative to the STA chanctx. Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: switch channel after sending beaconFelix Fietkau1-1/+2
Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Add p2p go NoA attributeFelix Fietkau4-5/+80
Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2014-06-19ath9k: Store current offchannel durationRajkumar Manoharan2-9/+20
Update current offchannel duration during scan or roc request. Signed-off-by: Rajkumar Manoharan <[email protected]> Signed-off-by: John W. Linville <[email protected]>