~ubuntu-branches/ubuntu/trusty/linux-keystone/trusty-proposed

« back to all changes in this revision

Viewing changes to drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c

  • Committer: Package Import Robot
  • Author(s): Ike Panhc, Ike Panhc, Upstream Kernel Changes, Ubuntu: 3.13.0-36.63
  • Date: 2014-08-20 13:53:11 UTC
  • Revision ID: package-import@ubuntu.com-20140820135311-79314y76vlfia5e2
Tags: 3.13.0-11.18
[ Ike Panhc ]

* Release Tracking Bug
  - LP: #1365272
* Rebase to Ubuntu-3.13.0-35.62

[ Upstream Kernel Changes ]

* rapidio: keystone: fix kernel link warning (wrong section usage)
  - LP: #1365300
* rapidio: keystone: use GFP_DMA to allocate DMA buffers
  - LP: #1365300
* rapidio: rio-dev: use GFP_DMA to allocate DMA buffers
  - LP: #1365300
* remoteproc: patch for aligning uio address and size
  - LP: #1365300
* ARM: 8036/1: Enable IRQs before attempting to read user space in
  __und_usr
  - LP: #1365299

[ Ubuntu: 3.13.0-36.63 ]

* Release Tracking Bug
  - LP: #1365052
* SAUCE: (no-up) irqchip:gic: change access of gicc_ctrl register to read
  modify write.
  - LP: #1357527
* SAUCE: (no-up) arm64: optimized copy_to_user and copy_from_user
  assembly code
  - LP: #1358949
* SAUCE: (no-up) Drop APM X-Gene SoC Ethernet driver
  - LP: #1360140
* [Config] Drop XGENE entries
  - LP: #1360140
* [Config] CONFIG_NET_XGENE=m for arm64
  - LP: #1360140
* SAUCE: Add compat macro for skb_get_hash
  - LP: #1358162
* SAUCE: bcache: prevent crash on changing writeback_running
  - LP: #1357295
* SAUCE: (no-up) arm64: Fix the csr-mask for APM X-Gene SoC AHCI SATA PHY
  clock DTS node.
  - LP: #1359489
* SAUCE: (no-up) ahci_xgene: Skip the PHY and clock initialization if
  already configured by the firmware.
  - LP: #1359501
* SAUCE: (no-up) ahci_xgene: Fix the link down in first attempt for the
  APM X-Gene SoC AHCI SATA host controller driver.
  - LP: #1359507
* SAUCE: (no-up) pci-xgene-msi: fixed deadlock in irq_set_affinity
  - LP: #1359514
* iwlwifi: mvm: Add a missed beacons threshold
  - LP: #1349572
* mac80211: reset probe_send_count also in HW_CONNECTION_MONITOR case
  - LP: #1349572
* genirq: Add an accessor for IRQ_PER_CPU flag
  - LP: #1357527
* arm64: perf: add support for percpu pmu interrupt
  - LP: #1357527
* cifs: sanity check length of data to send before sending
  - LP: #1283101
* KVM: nVMX: Pass vmexit parameters to nested_vmx_vmexit
  - LP: #1329434
* KVM: nVMX: Rework interception of IRQs and NMIs
  - LP: #1329434
* KVM: vmx: disable APIC virtualization in nested guests
  - LP: #1329434
* HID: Add transport-driver functions to the USB HID interface.
  - LP: #1353021
* ahci_xgene: Removing NCQ support from the APM X-Gene SoC AHCI SATA Host
  Controller driver.
  - LP: #1358498
* fold d_kill() and d_free()
  - LP: #1354234
* fold try_prune_one_dentry()
  - LP: #1354234
* new helper: dentry_free()
  - LP: #1354234
* expand the call of dentry_lru_del() in dentry_kill()
  - LP: #1354234
* dentry_kill(): don't try to remove from shrink list
  - LP: #1354234
* don't remove from shrink list in select_collect()
  - LP: #1354234
* more graceful recovery in umount_collect()
  - LP: #1354234
* dcache: don't need rcu in shrink_dentry_list()
  - LP: #1354234
* lift the "already marked killed" case into shrink_dentry_list()
* split dentry_kill()
  - LP: #1354234
* expand dentry_kill(dentry, 0) in shrink_dentry_list()
  - LP: #1354234
* shrink_dentry_list(): take parent's ->d_lock earlier
  - LP: #1354234
* dealing with the rest of shrink_dentry_list() livelock
  - LP: #1354234
* dentry_kill() doesn't need the second argument now
  - LP: #1354234
* dcache: add missing lockdep annotation
  - LP: #1354234
* fs: convert use of typedef ctl_table to struct ctl_table
  - LP: #1354234
* lock_parent: don't step on stale ->d_parent of all-but-freed one
  - LP: #1354234
* tools/testing/selftests/ptrace/peeksiginfo.c: add PAGE_SIZE definition
  - LP: #1358855
* x86, irq, pic: Probe for legacy PIC and set legacy_pic appropriately
  - LP: #1317697
* bnx2x: Fix kernel crash and data miscompare after EEH recovery
  - LP: #1353105
* bnx2x: Adapter not recovery from EEH error injection
  - LP: #1353105
* Fix: module signature vs tracepoints: add new TAINT_UNSIGNED_MODULE
  - LP: #1359670
* bcache: fix crash on shutdown in passthrough mode
  - LP: #1357295
* bcache: fix uninterruptible sleep in writeback thread
  - LP: #1357295
* namespaces: Use task_lock and not rcu to protect nsproxy
  - LP: #1328088
* MAINTAINERS: Add entry for APM X-Gene SoC ethernet driver
  - LP: #1360140
* Documentation: dts: Add bindings for APM X-Gene SoC ethernet driver
  - LP: #1360140
* dts: Add bindings for APM X-Gene SoC ethernet driver
  - LP: #1360140
* drivers: net: Add APM X-Gene SoC ethernet driver support.
  - LP: #1360140
* powerpc/mm: Add new "set" flag argument to pte/pmd update function
  - LP: #1357014
* powerpc/thp: Add write barrier after updating the valid bit
  - LP: #1357014
* powerpc/thp: Don't recompute vsid and ssize in loop on invalidate
  - LP: #1357014
* powerpc/thp: Invalidate old 64K based hash page mapping before insert
  of 4k pte
  - LP: #1357014
* powerpc/thp: Handle combo pages in invalidate
  - LP: #1357014
* powerpc/thp: Invalidate with vpn in loop
  - LP: #1357014
* powerpc/thp: Use ACCESS_ONCE when loading pmdp
  - LP: #1357014
* powerpc/mm: Use read barrier when creating real_pte
  - LP: #1357014
* powerpc/thp: Add tracepoints to track hugepage invalidate
  - LP: #1357014
* powerpc: subpage_protect: Increase the array size to take care of 64TB
  - LP: #1357014
* mfd: rtsx: Add set pull control macro and simplify rtl8411
  - LP: #1361086
* mfd: rtsx: Add support for card reader rtl8402
  - LP: #1361086
* kvm: iommu: fix the third parameter of kvm_iommu_put_pages
  (CVE-2014-3601)
  - LP: #1362443
  - CVE-2014-3601
* isofs: Fix unbounded recursion when processing relocated directories
  - LP: #1362447, #1362448
  - CVE-2014-5472
* net: sctp: inherit auth_capable on INIT collisions
  - LP: #1349804
  - CVE-2014-5077
* blk-mq: fix initializing request's start time
  - LP: #1297522
* SAUCE: (no-up) dt-bindings: Add Potenza PMU binding
  - LP: #1357527
* SAUCE: (no-up) arm64: dts: Add PMU node for APM X-Gene Storm SOC
  - LP: #1357527

Show diffs side-by-side

added added

removed removed

Lines of Context:
1148
1148
static void iwl_mvm_beacon_loss_iterator(void *_data, u8 *mac,
1149
1149
                                         struct ieee80211_vif *vif)
1150
1150
{
1151
 
        u16 *id = _data;
 
1151
        struct iwl_missed_beacons_notif *missed_beacons = _data;
1152
1152
        struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1153
1153
 
1154
 
        if (mvmvif->id == *id)
 
1154
        if (mvmvif->id != (u16)le32_to_cpu(missed_beacons->mac_id))
 
1155
                return;
 
1156
 
 
1157
        /*
 
1158
         * TODO: the threshold should be adjusted based on latency conditions,
 
1159
         * and/or in case of a CS flow on one of the other AP vifs.
 
1160
         */
 
1161
        if (le32_to_cpu(missed_beacons->consec_missed_beacons_since_last_rx) >
 
1162
             IWL_MVM_MISSED_BEACONS_THRESHOLD)
1155
1163
                ieee80211_beacon_loss(vif);
1156
1164
}
1157
1165
 
1160
1168
                                    struct iwl_device_cmd *cmd)
1161
1169
{
1162
1170
        struct iwl_rx_packet *pkt = rxb_addr(rxb);
1163
 
        struct iwl_missed_beacons_notif *missed_beacons = (void *)pkt->data;
1164
 
        u16 id = (u16)le32_to_cpu(missed_beacons->mac_id);
 
1171
        struct iwl_missed_beacons_notif *mb = (void *)pkt->data;
 
1172
 
 
1173
        IWL_DEBUG_INFO(mvm,
 
1174
                       "missed bcn mac_id=%u, consecutive=%u (%u, %u, %u)\n",
 
1175
                       le32_to_cpu(mb->mac_id),
 
1176
                       le32_to_cpu(mb->consec_missed_beacons),
 
1177
                       le32_to_cpu(mb->consec_missed_beacons_since_last_rx),
 
1178
                       le32_to_cpu(mb->num_recvd_beacons),
 
1179
                       le32_to_cpu(mb->num_expected_beacons));
1165
1180
 
1166
1181
        ieee80211_iterate_active_interfaces_atomic(mvm->hw,
1167
1182
                                                   IEEE80211_IFACE_ITER_NORMAL,
1168
1183
                                                   iwl_mvm_beacon_loss_iterator,
1169
 
                                                   &id);
 
1184
                                                   mb);
1170
1185
        return 0;
1171
1186
}