首页 > 学院 > 操作系统 > 正文

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

2024-06-28 13:26:45
字体:
来源:转载
供稿:网友
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;> }


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表