爱程序网

ns2出现Client: Handoff Attempt的情况解决

来源: 阅读:

找到mac/mac-802_11.cc,这是系统本身一个bug,对于adhoc网络无需进行切换尝试。

if (*rcount == 3 && handoff == 0) {
> //start handoff process
> printf("Client %d: Handoff Attempted\n",index_);
> associated = 0;
> authenticated = 0;
> handoff = 1;
> ScanType_ = ACTIVE;
> sendPROBEREQ(MAC_BROADCAST);
> return;
> }
改为
if (infra_mode_ && *rcount == 3 && handoff == 0) {
> //start handoff process
> printf("Client %d: Handoff Attempted\n",index_);
> associated = 0;
> authenticated = 0;
> handoff = 1;
> ScanType_ = ACTIVE;
> sendPROBEREQ(MAC_BROADCAST);
> return;
> }

关于爱程序网 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助