Hi,
the idea is nice, but you'll have to face two min sub-issues:
1) Does the standard foresee a fast switching between ad-hoc and infrastructure mode ? (answer: no, registering to an AP is slow), and
2) How two nodes can know if they are close enough ?
I'm not saying that it's a bad idea, mind. I'm just suggestion to study its feasibility and how to do it with pen and paper, and switch to simulations after you're sure you have a good procedure outlined.
Cheers,
T.