dear all, I receive in my log file the following message:
At 9.525694049 Mac 5 (Node 3.0.1) drop packet because does not belong to bss_id -1 (hdv_state_=1) When I grep this error in mac_80211 I see that my MN is not attached at all to the BS: case MAC_Type_Data: //NIST: add L2 connection /* if we are not attached to bss_id, we cannot receive data */ //check if I am connected to my base station //src = ETHER_ADDR(mh->dh_ta); //Note: Only let routing algorithm messages pass through if ( ch->ptype()!=PT_MESSAGE && (index_ != bss_id_) && ((src != (u_int32_t) bss_id_) || hdv_state_ != MAC_CONNECTED) ) { //printf ("at %f src = %d and type=%d, subtype=%x...", NOW,src,type,subtype); debug ("At %.9f Mac %d (Node %s) drop packet because does not belong to bss_id %d (hdv_state_=%d)\n", \ NOW, index_, Address::instance().print_nodeaddr(netif_->node()->address()), bss_id_, hdv_state_); discard(pktRx_, "NCO"); goto done; My Question : How to attach this mn ? ps: this is how I attach my interface to the BS in tcl set iface1_($i) [$ns node 3.0.$i] ;# node id is 8. $iface1_($i) base-station [AddrParams addr2id [$bstation802 node-addr]] ;#attach mn to basestation Thanks