From last time, you upgraded the dnsmasq package and removed the patches without answering what patches and you still run a obsolete version of OpenWrt.
It appears you are using firmware that is not from the official OpenWrt project.
When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.
Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).
If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.
i just want to change in the source of package dnsmasq which is in openwrt repo. the change required must be in the c file which is making the dhcp.lease file to add the vendor class info .
so i dont think there is any difference if i am using a different firmware version as the package is openwrt repo
If you actually want to change something you have two mayor problems.
You MUST run main source code to begin with, and you must make the openwrt patch you want from there. Not a single person in the world will care about your patch idea if you run a OpenWrt from 2015!
Current OpenWrt main dnsmasq version is 2.90 so your 2.85 is also old even for dev work.
The link is to the actual dnsmasq owners own webpage.
The dnsmasq source code is one thing. But on top of that OpenWrt have a humongous big pile of patches to make it connect to the OpenWrt system and that connection have tree layers of config files to make it work at runtime.
that might be the case, but we don't know the patches applied (or not applied) to the package OP is using, I also assume he's patching the main code, not the openwrt specific features ...
their device is supported by openwrt, there's no real reason for using the stock fw, and hack the old version(s) of dnsmasq, etc.