Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183657
b: refs/heads/master
c: b6b1ac6
h: refs/heads/master
i:
  183655: b21ce5a
v: v3
  • Loading branch information
Larry Finger authored and John W. Linville committed Jan 14, 2010
1 parent 481243d commit 1d6daed
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0f2e0fca1e72c1de07e834be05b61d33842253e
refs/heads/master: b6b1ac69372da996f40863358df41ca77075b249
9 changes: 0 additions & 9 deletions trunk/drivers/staging/rtl8187se/ieee80211/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -482,15 +482,6 @@ struct ieee80211_header_data {
u16 seq_ctrl;
};

struct ieee80211_hdr_3addr {
u16 frame_ctl;
u16 duration_id;
u8 addr1[ETH_ALEN];
u8 addr2[ETH_ALEN];
u8 addr3[ETH_ALEN];
u16 seq_ctl;
} __attribute__ ((packed));

struct ieee80211_hdr_4addr {
u16 frame_ctl;
u16 duration_id;
Expand Down
24 changes: 12 additions & 12 deletions trunk/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee

enqueue_mgmt(ieee,skb);
}else{
header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4);
header->seq_ctrl = cpu_to_le16(ieee->seq_ctrl[0]<<4);

if (ieee->seq_ctrl[0] == 0xFFF)
ieee->seq_ctrl[0] = 0;
Expand All @@ -220,7 +220,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee
spin_unlock_irqrestore(&ieee->lock, flags);
spin_lock_irqsave(&ieee->mgmt_tx_lock, flags);

header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
header->seq_ctrl = cpu_to_le16(ieee->seq_ctrl[0] << 4);

if (ieee->seq_ctrl[0] == 0xFFF)
ieee->seq_ctrl[0] = 0;
Expand All @@ -246,7 +246,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *i

if(single){

header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
header->seq_ctrl = cpu_to_le16(ieee->seq_ctrl[0] << 4);

if (ieee->seq_ctrl[0] == 0xFFF)
ieee->seq_ctrl[0] = 0;
Expand All @@ -259,7 +259,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *i

}else{

header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
header->seq_ctrl = cpu_to_le16(ieee->seq_ctrl[0] << 4);

if (ieee->seq_ctrl[0] == 0xFFF)
ieee->seq_ctrl[0] = 0;
Expand Down Expand Up @@ -287,7 +287,7 @@ inline struct sk_buff *ieee80211_disassociate_skb(
return NULL;

disass = (struct ieee80211_disassoc_frame *) skb_put(skb,sizeof(struct ieee80211_disassoc_frame));
disass->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_DISASSOC);
disass->header.frame_control = cpu_to_le16(IEEE80211_STYPE_DISASSOC);
disass->header.duration_id = 0;

memcpy(disass->header.addr1, beacon->bssid, ETH_ALEN);
Expand Down Expand Up @@ -905,7 +905,7 @@ struct sk_buff* ieee80211_assoc_resp(struct ieee80211_device *ieee, u8 *dest)
assoc = (struct ieee80211_assoc_response_frame *)
skb_put(skb,sizeof(struct ieee80211_assoc_response_frame));

assoc->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_ASSOC_RESP);
assoc->header.frame_control = cpu_to_le16(IEEE80211_STYPE_ASSOC_RESP);
memcpy(assoc->header.addr1, dest,ETH_ALEN);
memcpy(assoc->header.addr3, ieee->dev->dev_addr, ETH_ALEN);
memcpy(assoc->header.addr2, ieee->dev->dev_addr, ETH_ALEN);
Expand Down Expand Up @@ -981,7 +981,7 @@ struct sk_buff* ieee80211_null_func(struct ieee80211_device *ieee,short pwr)
memcpy(hdr->addr2, ieee->dev->dev_addr, ETH_ALEN);
memcpy(hdr->addr3, ieee->current_network.bssid, ETH_ALEN);

hdr->frame_ctl = cpu_to_le16(IEEE80211_FTYPE_DATA |
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA |
IEEE80211_STYPE_NULLFUNC | IEEE80211_FCTL_TODS |
(pwr ? IEEE80211_FCTL_PM:0));

Expand Down Expand Up @@ -1084,7 +1084,7 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
skb_put(skb, sizeof(struct ieee80211_assoc_request_frame));


hdr->header.frame_ctl = IEEE80211_STYPE_ASSOC_REQ;
hdr->header.frame_control = IEEE80211_STYPE_ASSOC_REQ;
hdr->header.duration_id= 37; //FIXME
memcpy(hdr->header.addr1, beacon->bssid, ETH_ALEN);
memcpy(hdr->header.addr2, ieee->dev->dev_addr, ETH_ALEN);
Expand Down Expand Up @@ -1786,11 +1786,11 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,

tasklet_schedule(&ieee->ps_task);

if(WLAN_FC_GET_STYPE(header->frame_ctl) != IEEE80211_STYPE_PROBE_RESP &&
WLAN_FC_GET_STYPE(header->frame_ctl) != IEEE80211_STYPE_BEACON)
if (WLAN_FC_GET_STYPE(header->frame_control) != IEEE80211_STYPE_PROBE_RESP &&
WLAN_FC_GET_STYPE(header->frame_control) != IEEE80211_STYPE_BEACON)
ieee->last_rx_ps_time = jiffies;

switch (WLAN_FC_GET_STYPE(header->frame_ctl)) {
switch (WLAN_FC_GET_STYPE(header->frame_control)) {

case IEEE80211_STYPE_ASSOC_RESP:
case IEEE80211_STYPE_REASSOC_RESP:
Expand Down Expand Up @@ -2064,7 +2064,7 @@ void ieee80211_wake_queue(struct ieee80211_device *ieee)

header = (struct ieee80211_hdr_3addr *) skb->data;

header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
header->seq_ctrl = cpu_to_le16(ieee->seq_ctrl[0] << 4);

if (ieee->seq_ctrl[0] == 0xFFF)
ieee->seq_ctrl[0] = 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/rtl8187se/r8180_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ rate)
struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);
int mode;
struct ieee80211_hdr_3addr *h = (struct ieee80211_hdr_3addr *) skb->data;
short morefrag = (h->frame_ctl) & IEEE80211_FCTL_MOREFRAGS;
short morefrag = (h->frame_control) & IEEE80211_FCTL_MOREFRAGS;
unsigned long flags;
int priority;

Expand Down Expand Up @@ -2177,7 +2177,7 @@ short rtl8180_tx(struct net_device *dev, u8* txbuf, int len, int priority,
TxDescDuration = ThisFrameTime + aSifsTime + AckTime;
}

if(!(frag_hdr->frame_ctl & IEEE80211_FCTL_MOREFRAGS)) { //no more fragment
if (!(frag_hdr->frame_control & IEEE80211_FCTL_MOREFRAGS)) {
// ThisFrame-ACK.
Duration = aSifsTime + AckTime;
} else { // One or more fragments remained.
Expand Down

0 comments on commit 1d6daed

Please sign in to comment.