X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fnet%2Firda%2Firlmp.h;h=11ecfa58a648ff3ad145b8138055f6ac5ad9f54f;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=2f0c8f385c8110c779d9cd7e78a0a14ffa686700;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/net/irda/irlmp.h b/include/net/irda/irlmp.h index 2f0c8f385..11ecfa58a 100644 --- a/include/net/irda/irlmp.h +++ b/include/net/irda/irlmp.h @@ -29,7 +29,6 @@ #include /* for HZ */ -#include #include #include @@ -112,7 +111,7 @@ struct lsap_cb { struct timer_list watchdog_timer; - IRLMP_STATE lsap_state; /* Connection state */ + LSAP_STATE lsap_state; /* Connection state */ notify_t notify; /* Indication/Confirm entry points */ struct qos_info qos; /* QoS for this connection */ @@ -175,7 +174,8 @@ struct irlmp_cb { discovery_t discovery_cmd; /* Discovery command to use by IrLAP */ discovery_t discovery_rsp; /* Discovery response to use by IrLAP */ - int free_lsap_sel; + /* Last lsap picked automatically by irlmp_find_free_slsap() */ + int last_lsap_sel; struct timer_list discovery_timer; @@ -241,17 +241,14 @@ int irlmp_connless_data_request(struct lsap_cb *, struct sk_buff *, __u8); void irlmp_connless_data_indication(struct lsap_cb *, struct sk_buff *); #endif /* CONFIG_IRDA_ULTRA */ -void irlmp_status_request(void); void irlmp_status_indication(struct lap_cb *, LINK_STATUS link, LOCK_STATUS lock); void irlmp_flow_indication(struct lap_cb *self, LOCAL_FLOW flow); -int irlmp_slsap_inuse(__u8 slsap); -__u8 irlmp_find_free_slsap(void); LM_REASON irlmp_convert_lap_reason(LAP_REASON); static inline __u32 irlmp_get_saddr(const struct lsap_cb *self) { - return (self && !self->lap) ? self->lap->saddr : 0; + return (self && self->lap) ? self->lap->saddr : 0; } static inline __u32 irlmp_get_daddr(const struct lsap_cb *self)