Skip to content

Commit

Permalink
net80211: Remove unused output queue variable in ifnet structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Aug 15, 2022
1 parent 02038ab commit 3c8dbe1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion itl80211/openbsd/net80211/ieee80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ ieee80211_ifdetach(struct _ifnet *ifp)
}
ifp->netStat = NULL;
ifp->controller = NULL;
ifp->output_queue = NULL;
ifp->iface = NULL;
// ether_ifdetach(ifp);
}
Expand Down
1 change: 0 additions & 1 deletion itl80211/openbsd/net80211/ieee80211_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -3463,7 +3463,6 @@ ieee80211_notify_dtim(struct ieee80211com *ic)
}
mq_enqueue(&ic->ic_pwrsaveq, m);
(*ifp->if_start)(ifp);
// ifp->output_queue->start();
}
/* XXX assumes everything has been sent */
ic->ic_tim_mcast_pending = 0;
Expand Down
1 change: 0 additions & 1 deletion itl80211/openbsd/net80211/ieee80211_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,6 @@ ieee80211_newstate(struct ieee80211com *ic, enum ieee80211_state nstate,
ic->ic_mgt_timer = 0;
ieee80211_set_beacon_miss_threshold(ic);
(*ifp->if_start)(ifp);
// ifp->output_queue->start();
break;
}
break;
Expand Down
2 changes: 0 additions & 2 deletions itl80211/openbsd/sys/_if_ether.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@

#include <IOKit/network/IOPacketQueue.h>
#include <IOKit/network/IOEthernetInterface.h>
#include <IOKit/network/IOOutputQueue.h>

#define ETHER_IS_MULTICAST(addr) (*(addr) & 0x01) /* is address mcast/bcast? */
#define ETHER_IS_BROADCAST(addr) \
Expand Down Expand Up @@ -159,7 +158,6 @@ struct ether_multi {

struct _ifnet { /* and the entries */
IOEthernetInterface *iface;
IOOutputQueue* output_queue;
IOEthernetController* controller;
int if_link_state;
void *if_softc;
Expand Down

0 comments on commit 3c8dbe1

Please sign in to comment.