Endogenous scope of bargaining in oligopoly