realise wireless mesh router using two radio cards

hi everybody,

i was thinking if we could build a wireless mesh router using already available two 802.11 radio cards.

if i am not wrong i think it would also require us to write some program since all the protocols running on the router must see the underlying hardware as one unit.

could anyone help me out , give me hints about how to start it? has anyone tried it?