Lines Matching refs:apriv
1084 struct airo_info *apriv );
1086 struct airo_info *apriv );
2449 struct airo_info *apriv = dev->priv; local
2457 status = IN4500( apriv, EVSTAT );
2463 OUT4500( apriv, EVACK, EV_AWAKE );
2464 OUT4500( apriv, EVACK, EV_AWAKE );
2468 savedInterrupts = IN4500( apriv, EVINTEN );
2469 OUT4500( apriv, EVINTEN, 0 );
2473 OUT4500( apriv, EVACK, EV_MIC );
2475 if (test_bit(FLAG_MIC_CAPABLE, &apriv->flags)) {
2476 set_bit(JOB_MIC, &apriv->flags);
2477 wake_up_interruptible(&apriv->thr_wait);
2489 u16 newStatus = IN4500(apriv, LINKSTAT);
2490 OUT4500( apriv, EVACK, EV_LINK);
2521 if (auto_wep && !apriv->expires) {
2522 apriv->expires = RUN_AT(3*HZ);
2523 wake_up_interruptible(&apriv->thr_wait);
2526 struct task_struct *task = apriv->task;
2528 apriv->expires = 0;
2531 set_bit(FLAG_UPDATE_UNI, &apriv->flags);
2532 set_bit(FLAG_UPDATE_MULTI, &apriv->flags);
2540 if (apriv->scan_timestamp) {
2551 apriv->scan_timestamp = 0;
2553 if (down_trylock(&apriv->sem) != 0) {
2554 set_bit(JOB_EVENT, &apriv->flags);
2555 wake_up_interruptible(&apriv->thr_wait);
2585 fid = IN4500( apriv, RXFID );
2588 if (test_bit(FLAG_802_11, &apriv->flags)) {
2589 bap_setup (apriv, fid, 4, BAP0);
2590 bap_read (apriv, (u16*)&hdr, sizeof(hdr), BAP0);
2594 if (apriv->wifidev == NULL)
2597 bap_setup (apriv, fid, 0x36, BAP0);
2598 bap_read (apriv, (u16*)&hdr.len, 2, BAP0);
2609 if (test_bit(FLAG_802_11, &apriv->flags)) {
2610 bap_read (apriv, (u16*)&fc, sizeof(fc), BAP0);
2632 apriv->stats.rx_dropped++;
2636 if (test_bit(FLAG_802_11, &apriv->flags)) {
2638 bap_read (apriv, buffer + 1, hdrlen - 2, BAP0);
2640 bap_read (apriv, tmpbuf, 6, BAP0);
2642 bap_read (apriv, &gap, sizeof(gap), BAP0);
2646 bap_read (apriv, tmpbuf, gap, BAP0);
2650 bap_read (apriv, buffer + hdrlen/2, len, BAP0);
2655 bap_read (apriv, buffer, ETH_ALEN*2, BAP0);
2657 if (apriv->micstats.enabled) {
2658 bap_read (apriv,(u16*)&micbuf,sizeof(micbuf),BAP0);
2660 bap_setup (apriv, fid, 0x44, BAP0);
2670 bap_read(apriv,buffer+ETH_ALEN,len,BAP0);
2672 if (decapsulate(apriv,&micbuf,(etherHead*)buffer,len)) {
2679 OUT4500( apriv, EVACK, EV_RX);
2685 if (apriv->spy_data.spy_number > 0) {
2689 if (!test_bit(FLAG_802_11, &apriv->flags)) {
2691 bap_setup (apriv, fid, 8, BAP0);
2692 bap_read (apriv, (u16*)hdr.rssi, 2, BAP0);
2696 if (apriv->rssi)
2697 wstats.level = 0x100 - apriv->rssi[hdr.rssi[1]].rssidBm;
2707 if (apriv->spy_number > 0) {
2711 sa = (char*)buffer + (test_bit(FLAG_802_11, &apriv->flags) ? 10 : 6);
2713 for (i=0; i<apriv->spy_number; i++)
2714 if (!memcmp(sa,apriv->spy_address[i],ETH_ALEN))
2716 if (!test_bit(FLAG_802_11, &apriv->flags)) {
2717 bap_setup (apriv, fid, 8, BAP0);
2718 bap_read (apriv, (u16*)hdr.rssi, 2, BAP0);
2720 apriv->spy_stat[i].qual = hdr.rssi[0];
2721 if (apriv->rssi)
2722 apriv->spy_stat[i].level = 0x100 - apriv->rssi[hdr.rssi[1]].rssidBm;
2724 apriv->spy_stat[i].level = (hdr.rssi[1] + 321) / 2;
2725 apriv->spy_stat[i].noise = 0;
2726 apriv->spy_stat[i].updated = 3;
2732 OUT4500( apriv, EVACK, EV_RX);
2734 if (test_bit(FLAG_802_11, &apriv->flags)) {
2737 skb->dev = apriv->wifidev;
2756 fid = IN4500(apriv, TXCOMPLFID);
2759 if ( ( apriv->fids[i] & 0xffff ) == fid ) {
2760 len = apriv->fids[i] >> 16;
2766 get_tx_error(apriv, index);
2767 OUT4500( apriv, EVACK, status & (EV_TX | EV_TXEXC));
2769 apriv->fids[index] &= 0xffff;
2771 if (!test_bit(FLAG_PENDING_XMIT, &apriv->flags))
2774 if (!test_bit(FLAG_PENDING_XMIT11, &apriv->flags))
2775 netif_wake_queue(apriv->wifidev);
2778 OUT4500( apriv, EVACK, status & (EV_TX | EV_TXEXC));
2788 OUT4500( apriv, EVINTEN, savedInterrupts );
3546 struct airo_info *apriv ) { argument
3549 apriv->proc_entry = create_proc_entry(dev->name,
3552 apriv->proc_entry->uid = proc_uid;
3553 apriv->proc_entry->gid = proc_gid;
3554 apriv->proc_entry->owner = THIS_MODULE;
3559 apriv->proc_entry);
3569 apriv->proc_entry);
3579 apriv->proc_entry);
3589 apriv->proc_entry);
3599 apriv->proc_entry);
3609 apriv->proc_entry);
3619 apriv->proc_entry);
3629 apriv->proc_entry);
3640 struct airo_info *apriv ) { argument
3641 if ( !apriv->proc_entry->namelen ) return 0;
3642 remove_proc_entry("Stats",apriv->proc_entry);
3643 remove_proc_entry("StatsDelta",apriv->proc_entry);
3644 remove_proc_entry("Status",apriv->proc_entry);
3645 remove_proc_entry("Config",apriv->proc_entry);
3646 remove_proc_entry("SSID",apriv->proc_entry);
3647 remove_proc_entry("APList",apriv->proc_entry);
3648 remove_proc_entry("BSSList",apriv->proc_entry);
3649 remove_proc_entry("WepKey",apriv->proc_entry);
3722 struct airo_info *apriv = dev->priv; local
3736 readStatusRid(apriv, &status_rid, 1);
3737 readCapabilityRid(apriv, &cap_rid);
3802 struct airo_info *apriv = dev->priv; local
3816 readStatsRid(apriv, &stats, rid, 1);
4565 struct airo_info *apriv = dev->priv; local
4569 readConfigRid(apriv, 0);
4570 disable_MAC(apriv, 0);
4571 switch(apriv->config.authType) {
4574 apriv->config.authType = AUTH_OPEN;
4577 if (apriv->keyindex < auto_wep) {
4578 set_wep_key(apriv, apriv->keyindex, 0, 0, 0, 0);
4579 apriv->config.authType = AUTH_SHAREDKEY;
4580 apriv->keyindex++;
4583 apriv->keyindex = 0;
4584 set_wep_key(apriv, apriv->defindex, 0, 0, 0, 0);
4585 apriv->config.authType = AUTH_ENCRYPT;
4589 apriv->config.authType = AUTH_SHAREDKEY;
4591 apriv->need_commit = 1;
4592 writeConfigRid(apriv, 0);
4593 enable_MAC(apriv, &rsp, 0);
4594 up(&apriv->sem);
4597 clear_bit(JOB_AUTOWEP, &apriv->flags);
4598 apriv->expires = RUN_AT(HZ*3);