Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171862
b: refs/heads/master
c: 287f6f9
h: refs/heads/master
v: v3
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Nov 18, 2009
1 parent 1130d6b commit 2adbbba
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 474c48c9f2118e637477b3b1c70003cb5cbda983
refs/heads/master: 287f6f9672635f4e948c0aa96754a2ce448ebdb2
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1251.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ struct wl1251 {
u8 buffer_busyword[WL1251_BUSY_WORD_LEN];
struct wl1251_rx_descriptor *rx_descriptor;

struct ieee80211_vif *vif;

u32 chip_id;
char fw_ver[21];
};
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1251_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox)
}
}

if (vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID && wl->psm) {
wl1251_debug(DEBUG_EVENT, "SYNCHRONIZATION_TIMEOUT_EVENT");

/* indicate to the stack, that beacons have been lost */
ieee80211_beacon_loss(wl->vif);
}

return 0;
}

Expand Down
12 changes: 12 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1251_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,12 @@ static int wl1251_op_add_interface(struct ieee80211_hw *hw,
conf->type, conf->mac_addr);

mutex_lock(&wl->mutex);
if (wl->vif) {
ret = -EBUSY;
goto out;
}

wl->vif = conf->vif;

switch (conf->type) {
case NL80211_IFTYPE_STATION:
Expand Down Expand Up @@ -538,7 +544,12 @@ static int wl1251_op_add_interface(struct ieee80211_hw *hw,
static void wl1251_op_remove_interface(struct ieee80211_hw *hw,
struct ieee80211_if_init_conf *conf)
{
struct wl1251 *wl = hw->priv;

mutex_lock(&wl->mutex);
wl1251_debug(DEBUG_MAC80211, "mac80211 remove interface");
wl->vif = NULL;
mutex_unlock(&wl->mutex);
}

static int wl1251_build_null_data(struct wl1251 *wl)
Expand Down Expand Up @@ -1372,6 +1383,7 @@ struct ieee80211_hw *wl1251_alloc_hw(void)
wl->power_level = WL1251_DEFAULT_POWER_LEVEL;
wl->beacon_int = WL1251_DEFAULT_BEACON_INT;
wl->dtim_period = WL1251_DEFAULT_DTIM_PERIOD;
wl->vif = NULL;

for (i = 0; i < FW_TX_CMPLT_BLOCK_SIZE; i++)
wl->tx_frames[i] = NULL;
Expand Down

0 comments on commit 2adbbba

Please sign in to comment.