Ok let see what the problem is..
India does not want illegal immigrants from Bangladesh.
It wants the cross border smuggling to stop.
It wants to stop the ISI backed militants, from crossing over into Indian territory or local militants to cross over into Bangladeshi territory.
Now Bangladesh wants end to illegal BSF enroachment.
It want BSF to stop shooting its civilians.
It wants BSF to stop steeling Bangladeshi FISH
Hence fence the border and both our problems are solved...neither BSF will be able to enter into Bangladesh, nor illegal immigrants will be able to cross over...what say??