Lines Matching refs:ieee

138 static int libipw_encrypt_fragment(struct libipw_device *ieee,  in libipw_encrypt_fragment()  argument
142 ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_encrypt_fragment()
158 ieee->dev->name, frag->len); in libipw_encrypt_fragment()
159 ieee->ieee_stats.tx_discards++; in libipw_encrypt_fragment()
243 struct libipw_device *ieee = netdev_priv(dev); in libipw_xmit() local
263 if (ieee->is_queue_full && (*ieee->is_queue_full) (dev, priority)) in libipw_xmit()
266 spin_lock_irqsave(&ieee->lock, flags); in libipw_xmit()
270 if (!ieee->hard_start_xmit) { in libipw_xmit()
271 printk(KERN_WARNING "%s: No xmit handler.\n", ieee->dev->name); in libipw_xmit()
277 ieee->dev->name, skb->len); in libipw_xmit()
283 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_xmit()
285 encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) && in libipw_xmit()
286 ieee->sec.encrypt; in libipw_xmit()
288 host_encrypt = ieee->host_encrypt && encrypt && crypt; in libipw_xmit()
289 host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt; in libipw_xmit()
291 if (!encrypt && ieee->ieee802_1x && in libipw_xmit()
292 ieee->drop_unencrypted && ether_type != htons(ETH_P_PAE)) { in libipw_xmit()
307 if (ieee->iw_mode == IW_MODE_INFRA) { in libipw_xmit()
310 memcpy(header.addr1, ieee->bssid, ETH_ALEN); in libipw_xmit()
313 } else if (ieee->iw_mode == IW_MODE_ADHOC) { in libipw_xmit()
317 memcpy(header.addr3, ieee->bssid, ETH_ALEN); in libipw_xmit()
321 if (ieee->is_qos_active && ieee->is_qos_active(dev, skb)) { in libipw_xmit()
366 if (host_encrypt || ieee->host_open_frag) { in libipw_xmit()
373 frag_size = ieee->fts; in libipw_xmit()
380 if (ieee->config & in libipw_xmit()
404 rts_required = (frag_size > ieee->rts in libipw_xmit()
405 && ieee->config & CFG_LIBIPW_RTS); in libipw_xmit()
413 ieee->tx_headroom, GFP_ATOMIC); in libipw_xmit()
416 ieee->dev->name); in libipw_xmit()
442 if (ieee->config & in libipw_xmit()
486 libipw_encrypt_fragment(ieee, skb_frag, hdr_len); in libipw_xmit()
488 if (ieee->config & in libipw_xmit()
494 spin_unlock_irqrestore(&ieee->lock, flags); in libipw_xmit()
499 netdev_tx_t ret = (*ieee->hard_start_xmit)(txb, dev, priority); in libipw_xmit()
512 spin_unlock_irqrestore(&ieee->lock, flags); in libipw_xmit()