Merge tag 'wireless-drivers-next-for-davem-2016-07-13' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next
Kalle Valo says: ==================== wireless-drivers-next patches for 4.8 Major changes: iwlwifi * more work on the RX path for the 9000 device series * some more dynamic queue allocation work * SAR BIOS implementation * some work on debugging capabilities * added support for GCMP encryption * data path rework in preparation for new HW * some cleanup to remove transport dependency on mac80211 * support for MSIx in preparation for new HW * lots of work in preparation for HW support (9000 and a000 series) mwifiex * implement get_tx_power and get_antenna cfg80211 operation callbacks wl18xx * add support for 64bit clock rtl8xxxu * aggregation support (optional for now) Also wireless-drivers is merged to fix some conflicts. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -112,12 +112,18 @@ static int wlcore_smart_config_decode_event(struct wl1271 *wl,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void wlcore_event_time_sync(struct wl1271 *wl, u16 tsf_msb, u16 tsf_lsb)
|
||||
static void wlcore_event_time_sync(struct wl1271 *wl,
|
||||
u16 tsf_high_msb, u16 tsf_high_lsb,
|
||||
u16 tsf_low_msb, u16 tsf_low_lsb)
|
||||
{
|
||||
u32 clock;
|
||||
/* convert the MSB+LSB to a u32 TSF value */
|
||||
clock = (tsf_msb << 16) | tsf_lsb;
|
||||
wl1271_info("TIME_SYNC_EVENT_ID: clock %u", clock);
|
||||
u32 clock_low;
|
||||
u32 clock_high;
|
||||
|
||||
clock_high = (tsf_high_msb << 16) | tsf_high_lsb;
|
||||
clock_low = (tsf_low_msb << 16) | tsf_low_lsb;
|
||||
|
||||
wl1271_info("TIME_SYNC_EVENT_ID: clock_high %u, clock low %u",
|
||||
clock_high, clock_low);
|
||||
}
|
||||
|
||||
int wl18xx_process_mailbox_events(struct wl1271 *wl)
|
||||
@@ -138,8 +144,10 @@ int wl18xx_process_mailbox_events(struct wl1271 *wl)
|
||||
|
||||
if (vector & TIME_SYNC_EVENT_ID)
|
||||
wlcore_event_time_sync(wl,
|
||||
mbox->time_sync_tsf_msb,
|
||||
mbox->time_sync_tsf_lsb);
|
||||
mbox->time_sync_tsf_high_msb,
|
||||
mbox->time_sync_tsf_high_lsb,
|
||||
mbox->time_sync_tsf_low_msb,
|
||||
mbox->time_sync_tsf_low_lsb);
|
||||
|
||||
if (vector & RADAR_DETECTED_EVENT_ID) {
|
||||
wl1271_info("radar event: channel %d type %s",
|
||||
@@ -187,11 +195,11 @@ int wl18xx_process_mailbox_events(struct wl1271 *wl)
|
||||
*/
|
||||
if (vector & MAX_TX_FAILURE_EVENT_ID)
|
||||
wlcore_event_max_tx_failure(wl,
|
||||
le32_to_cpu(mbox->tx_retry_exceeded_bitmap));
|
||||
le16_to_cpu(mbox->tx_retry_exceeded_bitmap));
|
||||
|
||||
if (vector & INACTIVE_STA_EVENT_ID)
|
||||
wlcore_event_inactive_sta(wl,
|
||||
le32_to_cpu(mbox->inactive_sta_bitmap));
|
||||
le16_to_cpu(mbox->inactive_sta_bitmap));
|
||||
|
||||
if (vector & REMAIN_ON_CHANNEL_COMPLETE_EVENT_ID)
|
||||
wlcore_event_roc_complete(wl);
|
||||
|
@@ -74,10 +74,16 @@ struct wl18xx_event_mailbox {
|
||||
__le16 bss_loss_bitmap;
|
||||
|
||||
/* bitmap of stations (by HLID) which exceeded max tx retries */
|
||||
__le32 tx_retry_exceeded_bitmap;
|
||||
__le16 tx_retry_exceeded_bitmap;
|
||||
|
||||
/* time sync high msb*/
|
||||
__le16 time_sync_tsf_high_msb;
|
||||
|
||||
/* bitmap of inactive stations (by HLID) */
|
||||
__le32 inactive_sta_bitmap;
|
||||
__le16 inactive_sta_bitmap;
|
||||
|
||||
/* time sync high lsb*/
|
||||
__le16 time_sync_tsf_high_lsb;
|
||||
|
||||
/* rx BA win size indicated by RX_BA_WIN_SIZE_CHANGE_EVENT_ID */
|
||||
u8 rx_ba_role_id;
|
||||
@@ -98,14 +104,15 @@ struct wl18xx_event_mailbox {
|
||||
u8 sc_sync_channel;
|
||||
u8 sc_sync_band;
|
||||
|
||||
/* time sync msb*/
|
||||
u16 time_sync_tsf_msb;
|
||||
/* time sync low msb*/
|
||||
__le16 time_sync_tsf_low_msb;
|
||||
|
||||
/* radar detect */
|
||||
u8 radar_channel;
|
||||
u8 radar_type;
|
||||
|
||||
/* time sync lsb*/
|
||||
u16 time_sync_tsf_lsb;
|
||||
/* time sync low lsb*/
|
||||
__le16 time_sync_tsf_low_lsb;
|
||||
|
||||
} __packed;
|
||||
|
||||
|
@@ -1566,6 +1566,13 @@ int wl12xx_cmd_add_peer(struct wl1271 *wl, struct wl12xx_vif *wlvif,
|
||||
cpu_to_le32(wl1271_tx_enabled_rates_get(wl, sta_rates,
|
||||
wlvif->band));
|
||||
|
||||
if (!cmd->supported_rates) {
|
||||
wl1271_debug(DEBUG_CMD,
|
||||
"peer has no supported rates yet, configuring basic rates: 0x%x",
|
||||
wlvif->basic_rate_set);
|
||||
cmd->supported_rates = cpu_to_le32(wlvif->basic_rate_set);
|
||||
}
|
||||
|
||||
wl1271_debug(DEBUG_CMD, "new peer rates=0x%x queues=0x%x",
|
||||
cmd->supported_rates, sta->uapsd_queues);
|
||||
|
||||
|
@@ -5098,6 +5098,11 @@ static int wl12xx_update_sta_state(struct wl1271 *wl,
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
/* reconfigure rates */
|
||||
ret = wl12xx_cmd_add_peer(wl, wlvif, sta, wl_sta->hlid);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
ret = wl1271_acx_set_ht_capabilities(wl, &sta->ht_cap, true,
|
||||
wl_sta->hlid);
|
||||
if (ret)
|
||||
|
@@ -241,7 +241,6 @@ static int wlcore_probe_of(struct device *dev, int *irq,
|
||||
*irq = irq_of_parse_and_map(np, 0);
|
||||
if (!*irq) {
|
||||
dev_err(dev, "No irq in platform data\n");
|
||||
kfree(pdev_data);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user